RD> Why use a regular expression?
RD> strpos() will do this just fine.

strpos() will do it just fine, but if you need to use a regular expression to match a specific pattern and return the location in the string, preg_match() will also do this when you use the flag PREG_OFFSET_CAPTURE.


-- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to