What is the regex(format) behind the phone number detector available in Swift?

139 Views Asked by At
NSDataDetector(types: NSTextCheckingResult.CheckingType.phoneNumber.rawValue) 

I applied this code for phone number validation. Does anyone know for what phone number convention is this applicable (eg: E.164, Europe, US) or the regex behind it?

I didn't find anything in the Apple documentation and I need this in order to apply the same phone number validation also for Android.

0

There are 0 best solutions below