I'm working on a html parser for a client, and I have just started messing around with RegEx. I'm quite new to it but am learning quickly! In this part, I need to acquire all of the text that is 18.0pt size within the document. Here is the first RegEx I have tried (using a real-time RegEx tester):
<p.*?><span.*?style='.*?font-size:1
Here is my test text:
<p class=MsoNormal><span style='font-size:14.0pt;font-family:"Comic Sans MS"'>3<sup>rd</sup>
Sunday in Lent - 2013c<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:14.0pt;font-family:"Comic Sans MS"'>Old
Testament – Isaiah 55:1-9<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:14.0pt;font-family:"Comic Sans MS"'>New
Testament – Luke 13:1-9<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:18.0pt;font-family:"Comic Sans MS"'><o:p> </o:p>
</span></p>
It works correctly and highlights each line separately until the 1. The problem is, right when I change 1 to 18, instead of highlighting just the line with font-size:18, it highlights ALL THE WAY from the first line until the 18. I would like to just grab the line with 18pt font. Thank you, and any help is appreciated! :)