regex for C-like identifier
match an C-like identifier
In computer languages, identifiers are tokens (also called symbols) which name language entities
The identifiers are the names given to variables, structures, functions etc in programming languages like C.
An identifier can have alphabets, numbers, and underscore (_).
Identifiers cannot start with numbers.
Note: Keywords cannot be used as an identifier
Cheatsheet
expr | usage |
---|
iHateRegex
by
geon