Regular Expressions 101

Library entries

Match CNSTANT_CASE with underscores

Vote

0

Regular Expression
javascript

/
^[A-Z](?!.*__.*)([A-Z_]*)[A-Z]$
/
gm

Description

Loading markdown...
Submitted by David Enke <david.enke@zalari.de> - 3 years ago