Re: PHP Tips and Tricks ereg vs preg
When it comes to the regular expression functions, ereg* and preg*, the preg functions are the clear choice. The preg functions are generally twice as fast as their ereg counterpart. They also support more advanced regular expression operations. I can't think of any reason why you would need to use the ereg functions.
preg manual page and pattern syntax (long and confusing but pretty good).
__________________ Thanks & Regards
Sabari... |