Click to See Complete Forum and Search --> : php string matching functions


nouse66
09-28-2004, 10:16 PM
i vaugely remember seeing a php function a long time ago that was somewhere inbetween ereg_match()/preg_match() and strpos() and i cant find it anymore. it was used for matching strings but had sql like wildcard capabilities (% matches 0 or more characters).

can anone confirm that there is or is not such a function?

i have a huge script that works currently with strpos() and would be a pain to convert to full regex matching so i'm that i'm remembering correctly.

maybe i'm losing it and this was a completely different language...

thanks,
aaron

fatTrav
09-28-2004, 10:43 PM
It would be here if it existed, most likely: http://us4.php.net/manual/en/ref.strings.php

ok, i take that back. php's functions aren't laid out in a manner I can really figure out. I had assumed some/all regex matching functions would be within the string functions list...

nouse66
09-29-2004, 02:47 AM
yeah, i went through php.net for quite a while today and couldnt find it. the regex functions have their own section that is separate from the string functions...