In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Digitalkoala) wrote:
> I was just wondering what your opinions were on using preg_match, preg_split > instead of ereg and explode? > > I have to write a script to parse a lot of html and text files.. and I'm > looking to use the fastest possible functions to do this... preg_match() vs. ereg(): preg_* functions are supposed to be siginficantly faster than their ereg_* "equivalents", so preg_match() should be the winner here. preg_split() vs. explode(): these aren't "equivalent" functions. The former splits on a regular expression; the latter splits on a string value. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php