PHP Regular Expression not working : mobile format -


i having problem in code. cant seem solve this.
here test subject : +447799604555
, here code

preg_match("/^\+44d{10}$/", "+447799604555"); 

is returning 0 false.. don't know problem is.

you have missed \ before d. try following regex:

/^\+44\d{10}$/ 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -