regex && logical condition (telephone numbers in Sweden)
- by ms80
8, 10, 12, 981 (few area codes in Sweden). Total phone number can be 10 or 11 (digits only)
If 8 + 9 or 10 digits
if 981 + 7 or 8 digits
Can this be done in regex?
something like that ..hm
(8|10|12)\d{n} = Total Length 10 or 11