Submitted by zolo - 6 years ago
Lookahead phone test with formatting
Let's say a phone number is valid in case it has 11 digits only (13 in case of using 00 instead of +). Separators could be anywhere. Take the valid numbers and bring to common format. Original idea was deleting all non-digits but using look-ahead made impossible to use + for remove non-digits, it ne...