Get seleted text parent tag using regex C#

Posted by Aruna Tennakoon on Stack Overflow See other posts from Stack Overflow or by Aruna Tennakoon
Published on 2010-02-01T09:34:43Z Indexed on 2010/05/16 22:00 UTC
Read the original article Hit count: 148

Filed under:
|
|
 <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?

© Stack Overflow or respective owner

Related posts about regex

Related posts about c#