Regular Expressions 101

Community Patterns

Match Class Name

1

Regular Expression
PCRE (PHP <7.3)

/
(^[a-zA-Z-]+$)|(^[a-z_]+$)
/
mg

Description

Matching all the proper class names

Submitted by anonymous - 8 years ago