I want a regular expression that can match
<FONT FACE=\"Verdana\" SIZE=\"12\"> My Name is xyz </FONT>
or
<LI><FONT FACE=\"Verdana\" SIZE=\"12\"> My Name is xyz </FONT></LI>
and it should not be greedy
I want a regular expression that can match
<FONT FACE=\"Verdana\" SIZE=\"12\"> My Name is xyz </FONT>
or
<LI><FONT FACE=\"Verdana\" SIZE=\"12\"> My Name is xyz </FONT></LI>
and it should not be greedy
Three questions in as many hours. Must be a record of some sorts.
For the sake of humanity, don't use regular expressions to parse XML!
You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool that is insufficiently sophisticated to understand the constructs employed by HTML. HTML is not a regular language and hence cannot be parsed by regular expressions. Regex queries are not equipped to break down HTML into its meaningful parts
the beginning of the answer to this exact question with over 3400 up votes. If you don't understand this and insist on ignoring this advice then you probably should not be programming.