A phone number has exactly 11 digits, but there might be other readibility symbols in it, like spaces, brackets or hyphens.
Is it possible to match such numbers to one regex? Without any programming methods, just regex. E.g. all following numbers should match:
- 71234567890
- 7 123 4568790
- 7(123)4567890
- 7 (123) 456-78-90
- 7(123) 456-7890
I suspect it might have something to do with positive lookahead. The regex might check if there are 11 digits, and then check if all the other symbols are from a certain set. But I haven't found a solution, so any idea would be greatly appreciated.