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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -