I have a string
<ul><li>Option to add embroidered text personalization below design<br/>for only $1.00 per shirt and free setup</li><li>Men's Sizes: XS-6XL</li><li>Individually folded and bagged with size sticker for easy distribution</li><li>Ready to ship in 7 business days after art approval</li></ul>
Trying to match
<li>Men's Sizes: XS-6XL</li>
I am looking to take only the last <li></li>
set that contains words
So for li that contains sizes I am looking to run something like:
(<li>).*?\b[sS]izes[ :]{1}.*?<\/li>
but that selects the first <li>
instance instead of the closest.
EDIT: I can't use a html parser here like HTMLAgilityPack.