Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*
/

Description

The official expression used for variable names, class names, etc. From http://www.php.net/manual/en/language.variables.basics.php

Submitted by anonymous - 9 years ago