Skip to main content

identifier

Function identifier 

Source
pub fn identifier(value: &[u8]) -> bool
Expand description

preg_match('/^[A-Za-z_]\w*$/D', $value) === 1: an ASCII letter or _, then ASCII letters, digits and _ (the pattern has no /u, so \w is ASCII), up to the very end.

PHP: Identifier::isValid() after Text::isValid().