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
/
(?s)^[ ]*lemma[^"]*"[^"]*?K\(
/
gm
Input 1
1
lemma A: " abx K() bc " // comment lemma B lemma B: " abx bc sdsf " lemma C: " abfdfx K() bc " lemma D: " abxsf bc "
Substitution
lemma A: " abx K() bc " // comment lemma B lemma B: " abx bc sdsf " lemma C: " abfdfx K() bc " lemma D: " abxsf bc "