Hey I would like to check if UITextView
(maybe this could be relevant or not) contains phone number in text. I am using Swift 2.3
, but if you got it in Swift 3
I will try to translate it.
Should work for these inputs for exemple:
- "Good morning, 627137152"
- "Good morning, +34627217154"
- "Good morning, 627 11 71 54"
The last case it's easy if other works, just replace " " occurences to "" and check the previous function containsPhone.
I have tried this solution but doesn't works with the first case: (Find phone number in string - regular)
Thank you.