-4

Regular expression for country code like +91 for India

B Faley
  • 17,120
  • 43
  • 133
  • 223
Bhanu Prakash Pandey
  • 3,805
  • 1
  • 24
  • 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
  • 148,279
  • 62
  • 259
  • 315