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&regex=zwi%5ba-za-z0-9%5d%2btch&input=zwijdgc83806161tch


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -