Regular Expressions 101

Community Patterns

Community Library Entry

3

Regular Expression
PCRE (PHP <7.3)

/
^\s*((\+48)?|(\(\+48\))?)[-. ]?[5678]?(\d{2})[-. ]?(\d{3})[-. ]?(\d{3})[-. ]?\s*$
/

Description

PL Phone number

Submitted by Dawid - 9 years ago