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
r"
%(?P<hash_string>[a-zA-Z_]+)\s?=(?:\s+)?(?P<hash_value>\(.*?\))
"
sg
Input 1
1
New
%some_hash = ( ... ) %some_other_hash = ( ... )
Substitution
%some_hash = ( ... ) %some_other_hash = ( ... )