Get seleted text parent tag using regex C#
- by Aruna Tennakoon
<SPAN id=spanD121C150D2 style="BACKGROUND-COLOR: antiquewhite" CategoryID="1" MessageID="2316" refSpan="">
<SPAN id=span1CE69EDE12 style="BACKGROUND-COLOR: blue" CategoryID="2" MessageID="2316" refSpan="">platnosci inny srodkiem platnosci. DC - zakup paliwa na stacji benzynowej 101-500 (150 zl). 27
</SPAN>
</SPAN>
I have a string like above.
If the selected text is "srodkiem ", is it possible to get the relevant span tag?
Is this possible using a regular expression?