.net - Help with regex: Anything inside a tag -


I need to find anything inside tr ...

   & lt; Tr class = "class1" & gt;  and  & lt; / Tr & gt;   

/ P>

Thank you!

, regex is not enough to perform this task.

He said, you can use a poor expression like this: / & lt; Tr *? & Gt; (. *?) & Lt; \ / Tr & gt; / where group 1 will be & lt; Tr & gt; What is (usually) between tags, but there is no guarantee on accuracy ... things like nested tags will close it You need to use real html parser .


Comments