Page 1 of 1

reg-ex how to??

Posted: Sat May 29, 2010 10:02 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: reg-ex how to??

Posted: Sun May 30, 2010 12:55 am
by requinix
Regular expressions should only be used when other functions aren't good enough.

Re: reg-ex how to??

Posted: Sun May 30, 2010 2:55 am
by internet-solution
There is a separate subforum for regex - viewforum.php?f=38