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
/
<span style=\\?"color:([a-zA-Z\s]*?)\\?">((.|\n)*?)<\/span>
/
g
Input 1
<p style=\"text-align:left\"> <span style=\"color:Green\"> <span style=\"font-size:12pt\"> <span style=\"font-family:Times New Roman\">There is some content for a mm advertisment.</span> </span> </span> </p> <p style=\"text-align:left\"> <span style=\"color:Green\"> <span style=\"font-size:12pt\"> <span style=\"font-family:Times New Roman\">There is some content for a mm advertisment.There is some content for a mm advertismen</span> </span> </span> <span style=\"color:Red\"> <span style=\"font-size:12pt\"> <span style=\"font-family:Times New Roman\">t.There is s</span> <span style=\"font-family:Verdana\">ome content for a mm advertisment.There is some content for a mm advertisme</span> </span> </span> <span style=\"color:Green\"> <span style=\"font-size:12pt\"> <span style=\"font-family:Verdana\">nt.There is some content for a mm adv</span> <span style=\"font-family:Times New Roman\">ertisment.There is some content for a mm advertisment..</span>
Extraction
<p style=\"text-align:left\"> <span style=\"color:Green\"> <span style=\"font-size:12pt\"> <span style=\"font-family:Times New Roman\">There is some content for a mm advertisment.</span> </span> </span> </p> <p style=\"text-align:left\"> <span style=\"color:Green\"> <span style=\"font-size:12pt\"> <span style=\"font-family:Times New Roman\">There is some content for a mm advertisment.There is some content for a mm advertismen</span> </span> </span> <span style=\"color:Red\"> <span style=\"font-size:12pt\"> <span style=\"font-family:Times New Roman\">t.There is s</span> <span style=\"font-family:Verdana\">ome content for a mm advertisment.There is some content for a mm advertisme</span> </span> </span> <span style=\"color:Green\"> <span style=\"font-size:12pt\"> <span style=\"font-family:Verdana\">nt.There is some content for a mm adv</span> <span style=\"font-family:Times New Roman\">ertisment.There is some content for a mm advertisment..</span>