0

I need to find phone number in nsstring without white spaces.
I use regular: ^\\+[1-9]{1}[0-9]{3,14}$.
It works when i have string with phone number only - 345908233.
But when i have a string - sdkaflfnsdfhgiusafusfbuosb345908233fkjsadfnksjfnas it doesn't work.

Could you help me please?

Didier Aupest
  • 3,048
  • 2
  • 25
  • 35
ankmara
  • 245
  • 3
  • 12

1 Answers1

0

Remove ^ and $ form your regex. \+[1-9]{1}[0-9]{3,14}

Sam FarajpourGhamari
  • 14,341
  • 4
  • 52
  • 56