I want to match the html code until the next occurrence ... or the end.
I currently have the following regex:
(<font color=\"#777777\">\.\.\. .+?<\/font>)
Which will correspond exactly to this:
1. <font color="#777777">... </font><font color="#000000">lives up to the customer expectations. The subscriber is </font> 2. <font color="#777777">... You may not want them to be </font> 3. <font color="#777777">... </font><font color="#000000">the web link, and </font>
But I would like to:
1. <font color="#777777">... </font><font color="#000000">lives up to the customer expectations. The subscriber is </font><font color="#777777">obviously thinking about your merchandise </font><font color="#000000">in case they have clicked about the link in your email.</font> 2. <font color="#777777">... You may not want them to be </font><font color="#000000">disappointed by simply clicking </font> 3. <font color="#777777">... </font><font color="#000000">the web link, and </font><font color="#777777">finding </font><font color="#000000">the page to </font><font color="#777777">get other than </font><font color="#000000">what they thought it </font><font color="#777777">will be.. If America makes</font>
Here is the html I want to parse:
<font color="#777777">... </font><font color="#000000">lives up to the customer expectations. The subscriber is </font><font color="#777777">obviously thinking about your merchandise </font><font color="#000000">in case they have clicked about the link in your email.</font><font color="#777777">... You may not want them to be </font><font color="#000000">disappointed by simply clicking </font><font color="#777777">... </font><font color="#000000">the web link, and </font><font color="#777777">finding </font><font color="#000000">the page to </font><font color="#777777">get other than </font><font color="#000000">what they thought it </font><font color="#777777">will be.. If America makes</font>
And a demo: http://rubular.com/r/mmQ4TBZb96
How to combine all the texts starting with ...... to get the desired matches above?
Thanks for the help!
Aljaz source share