-4

Regular expression for country code like +91 for India

B Faley
  • 15,776
  • 37
  • 123
  • 205
Bhanu Prakash Pandey
  • 3,765
  • 1
  • 23
  • 16

1 Answers1

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