Regular Expressions 101

Community Patterns

Remove special character at first position of string

-3

Regular Expression
PCRE (PHP <7.3)

/
\A[\r\n\s\]\[\\\^$@~#%.&|?;,*`+()\-_<>{}\/]*
/
g

Description

This search for special character at first position in the string

Submitted by anonymous - 8 years ago