Page 1 of 1

how to?? reg-ex)

Posted: Sun May 30, 2010 3:05 pm
by vin_akleh
can any one tell me what is the correct reg-ex and how to do it to remove both
<!--[if !supportLineBreakNewLine]-->
and
<!--[endif]-->
using something like preg_replace

thanks

Re: how to?? reg-ex)

Posted: Sun May 30, 2010 7:42 pm
by ridgerunner
Try this:

Code: Select all

$str = preg_replace('/<!--.*?-->/s', '', $str);

Re: how to?? reg-ex)

Posted: Sun Jun 06, 2010 9:45 pm
by vin_akleh
that did work but the problem is that is removed every thing with it
i have some images and colors that got removed and the hall text too
and way i am only facing this problem on IE not on other browsers if you would like to see what i mean hear is it
saadizeidan . com
anyway try it on IE and on any other browser and you'll see what i mean.
thanks in advanced