Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?:[^\x00-\xff]|[a-zA-Z0-9\-_])+$
/
gm

Description

匹配中、英文、数字、全角符号,破折号和下滑线,不匹配除了这些以外的其他字符

Submitted by nihuge - 3 years ago