> 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

> 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
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
-- http://www.datalink.nl

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to