I need to generate such pattern for my input, for example:
+375 29 911-91-91
in general, it looks like this:
+375 XX XXX-XX-XX
Note the spaces!
I tried this:
[\+][\ ]\d{3}[\ ]\d{2}\d{3}[\-]\d{2}[\-]\d{2}
Will this work in IE?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Should work. You also don’t need to put the square brackets [ and ] around every character unless you want to do an or [a|b] test or you need to do a range of characters [a-z].