[Nottingham] PHP RegEx woes

Christopher Joice linuxisthefuture at gmail.com
Fri Oct 3 18:55:52 UTC 2008


On Fri, 2008-10-03 at 11:30 -0700, Charles Samuels wrote:

> use preg_replace instead of ereg_replace. Then you can disable greediness the 
> Perl way with '?' and the preg_ functions are *much* faster, too!

Ace, that does EXACTLY what I wanted it to! Many thank yous!

Just a note, preg needs the regex to have /s at the start and end to
work.

Thanks,
Christopher Joice
-
http://chrisjoice.co.uk
-
"May the forces of evil become confused on the way to your house."
-- George Carlin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/nottingham/attachments/20081003/09950f6a/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://mailman.lug.org.uk/pipermail/nottingham/attachments/20081003/09950f6a/attachment.pgp 


More information about the Nottingham mailing list