Recognises the ECMAScript IdentifierName syntax with full Unicode support. The pattern is anchored, matching a whole
name and nothing less; carrying no global flag, it keeps no state between tests and may be shared freely.
Reach for it wherever an identifier is to be recognised by a regular expression rather than by a call, as in a form
control or a schema; isIdentifier validates values in code.
Regular expression matching ECMAScript Identifier names.
Recognises the ECMAScript IdentifierName syntax with full Unicode support. The pattern is anchored, matching a whole name and nothing less; carrying no global flag, it keeps no state between tests and may be shared freely.
Reach for it wherever an identifier is to be recognised by a regular expression rather than by a call, as in a form control or a schema; isIdentifier validates values in code.