regex && logical condition (telephone numbers in Sweden)
Posted
by ms80
on Stack Overflow
See other posts from Stack Overflow
or by ms80
Published on 2010-03-25T17:16:21Z
Indexed on
2010/03/25
17:23 UTC
Read the original article
Hit count: 412
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
© Stack Overflow or respective owner