G
Guest
I have a aspx file (snippet shown below):
=======
<td class="light-m1" id="rwCompleteButton" runat="server"><br/>
<asp:ImageButton CssClass="clear-m1" runat="server"
CommandName="Complete" ID="btnComplete" />
<asp:ImageButton CssClass="clear-m1" runat="server"
CommandName="Delete" ID="btnDelete" />
</td>
=======
and the following .cs file to execute (snippet below)
========
strReg = @"(<\w+.|[\r\n])*?id=""btnComplete"")([^>]+>)";
reg = new Regex(strReg);
if (!reg.IsMatch(uiStr))
{
blah...blah...
}
========
The if statement above is going to infinite loop. However, when I try the
expression on Expresso (a third party tool written in vs.net 2003) it matches
just fine.
Any ideas?
=======
<td class="light-m1" id="rwCompleteButton" runat="server"><br/>
<asp:ImageButton CssClass="clear-m1" runat="server"
CommandName="Complete" ID="btnComplete" />
<asp:ImageButton CssClass="clear-m1" runat="server"
CommandName="Delete" ID="btnDelete" />
</td>
=======
and the following .cs file to execute (snippet below)
========
strReg = @"(<\w+.|[\r\n])*?id=""btnComplete"")([^>]+>)";
reg = new Regex(strReg);
if (!reg.IsMatch(uiStr))
{
blah...blah...
}
========
The if statement above is going to infinite loop. However, when I try the
expression on Expresso (a third party tool written in vs.net 2003) it matches
just fine.
Any ideas?