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
/
(L\d+).* RED
/
gm
Input 1
1
New
Sample text for stackoverflow with value L12345 and some other word like RED. Another text for example with value L54321 and one more BLUE word. Last sample string L11122 and some other RED word.
Substitution
Sample text for stackoverflow with value L12345 and some other word like RED. Another text for example with value L54321 and one more BLUE word. Last sample string L11122 and some other RED word.