trim phone number with regex
Posted
by adrianm
on Stack Overflow
See other posts from Stack Overflow
or by adrianm
Published on 2010-04-26T07:04:23Z
Indexed on
2010/04/26
7:13 UTC
Read the original article
Hit count: 207
regex
Probably an easy regex question.
How do I remove all non-digts except leading + from a phone number?
i.e.
012-3456 => 0123456
+1 (234) 56789 => +123456789
© Stack Overflow or respective owner