Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^[A-Za-z0-9_]+$
/
gm

Description

匹配只包含字母,数字,下划线的字符串

Submitted by 白小黑 - 2 years ago