Community Patterns

Community Library Entry

-1

Regular Expression
Created·2020-06-09 15:18
Flavor·PCRE (Legacy)

/
\b\d{2}([8-9]\d{8}|[1-7]\d{7})\b
/
g
Open regex in editor

Description

MASK TO VALIDATION, WHEN YOU NEED THE AREA CODE OPEN.

TO A CELLPHONE WITH 9 OR 8 DIGITS + AREA CODE OF 2 DIGITS

11 987654321 -> IT WILL GET 98765

Submitted by anonymous