Regular expression for country code like +91 for India
Asked
Active
Viewed 3,616 times
-4
-
Could you rephrase your question? What do you want to do? – Czechnology Mar 02 '11 at 11:01
-
1If i could vote this down i would. – Chris Mar 02 '11 at 11:01
-
6@Chris: I did it for you. And for me. And for humanity. – sevenseacat Mar 02 '11 at 11:02
1 Answers
8
Is it a question ? If you want to get a regexp to match country code like + with two digits, then use:
/(\+\d{2})/
hsz
- 143,040
- 58
- 252
- 308