Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-11-14 09:55
Flavor·PCRE (Legacy)

/
[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*
/
Open regex in editor

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