pregmatch is not working PHP -
i have piece of code
if(preg_match('/zwi[a-za-z0-9]+tch/', $cust_ref_no)) { echo "im in"; }
i have $cust_ref_no 'zwijdgc83806161tch'
this not working.any guess why?
the regex fine. $cust_ref_no must not think is, try echoing prior preg_match.
regex test: http://regexpal.com/?flags=g®ex=zwi%5ba-za-z0-9%5d%2btch&input=zwijdgc83806161tch
Comments
Post a Comment