Re: For the RegExps gurus!

From: Date: Thu, 06 Sep 2001 09:34:45 +0000
Subject: Re: For the RegExps gurus!
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-66172@lists.php.net to get a copy of this message
> Ehh... no. How would you implement an if-statement then? I thought I could have build a regexp that allow you to specify a default value of a subset if it was not matched... and it seems there is no way then! Thanks Renze. "* R&Ze:" <renze@datalink.nl> wrote in message news:20010906095628.K19403@pro-pain.telemediair.nl... > > 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 (#66172) next »