Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Java 8

"
(\+?[\d]{1,3}([-]{0,2}|[\s]+)?)?\(?(\d{3})\)?([-]{0,2}|[\s])?(\d{3})([-]{0,2}|[\s])?(\d{4})(\s?(([E|e]xt[:|.|]?)|x|X)(\s?\d+))?
"
gm

Description

phone number matcher

Submitted by anonymous - 3 years ago