Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^[^`~!@#$%^&*()_+={}\[\]|\\:;“’<,>.?๐฿]*$
/
gm

Description

A regular expression to filter special characters.

Submitted by gwicho38 - 2 years ago