Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
[a-z0-9.\-\s]
/
gmi

Description

Match only english characters with numbers, spaces, comma and dots.

/[a-z0-9.\-\s]/gmi
Submitted by Giorgi Gumburashvili - 2 years ago