Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^(?=.*[A-Z])(?!.*_).+
/
gm
Input 1
1
New
FALSE: example-chocolate-easter-egg-170g_349-85428671-ACCESSIBLEEASTEREGG chocolate-easter-egg-170g349-85428671-accessibleeasteregg TRUE: example-chocolate-easter-egg-170g349-85428671-ACCESSIBLEEASTEREGG
Extraction
FALSE: example-chocolate-easter-egg-170g_349-85428671-ACCESSIBLEEASTEREGG chocolate-easter-egg-170g349-85428671-accessibleeasteregg TRUE: example-chocolate-easter-egg-170g349-85428671-ACCESSIBLEEASTEREGG