reg-ex how to??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vin_akleh
Forum Commoner
Posts: 53
Joined: Sat Feb 14, 2009 10:26 am

reg-ex how to??

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: reg-ex how to??

Post by requinix »

Regular expressions should only be used when other functions aren't good enough.
internet-solution
Forum Contributor
Posts: 220
Joined: Thu May 27, 2010 6:27 am
Location: UK

Re: reg-ex how to??

Post by internet-solution »

There is a separate subforum for regex - viewforum.php?f=38
Post Reply