Problem with regular expression to capture tag content
Posted on 2006-04-01
Hello All !
This is maybe not the best place for that subject but anyway...
I need to be able to parse an XHTML page in XML.
So, first step, simply load the page in an XmlDocument. This was working fine until my page was having some special characters (accent, ...)
So second step: before loading the page, I wanted to parse it with regular expression to add CDATA blocks for each tag content. To do that, I was using the following regular expression:
This was working fine until I received a page containing such tags:
<td align="right" colspan="2">
<select id="ctl00_MasterHome_gvMonTableauProduction_cboNumPages" onchange="__doPostBack('ctl00$MasterHome$gvMonTableauProduction','SelectedPage')">
<option value="0">Page 1</option>
<option selected="selected" value="1">Page 2</option>
I can't succeed to modify corretly my regex to match the part with "<< Previous"
Do you have any idea how I can do this ?