Re: For the RegExps gurus!

From: Date: Thu, 06 Sep 2001 07:56:28 +0000
Subject: Re: For the RegExps gurus!
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-66168@lists.php.net to get a copy of this message
> Sort of yes.... > I thought it can be done with the /e modifier! Well... the /e modifier is used. But you have a different problem, you're matching over multiple lines. That's what the /m modifier is for. > Can't it be done with pure RegExps? Ehh... no. How would you implement an if-statement then? You could use the very simple pure regexps if you don't also want to match/replace the www.some.thing. If you only want to replace the URL's that start with the protocol, then you can use the pure regexps. If not... to bad, you'll need /e. -- * R&zE: -- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze@datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««

« previous php.general (#66168) next »