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'
(?<=[\s])((?:docstring|some_detailed_notes)\s*=\s*(?://.*\n\s*)*)((("|\(\s*")((?:[^"\\]|\\.)+)("|"\s*\)))*|([\+_a-z ]*)*)(\s*;)
'
g
Input 1
1
docstring = "mystr"; docstring = "some \"subs" + some_str + "next"; docstring = ( some_str + "cde" + some_str + "efg" + another_str + "ghi" );