We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d263145 commit da5e19dCopy full SHA for da5e19d
RegexPlanet-DotNet/Test.aspx.cs
@@ -127,7 +127,16 @@ protected void Page_Load(object sender, EventArgs e)
127
sb.Append(Server.HtmlEncode(test));
128
sb.AppendLine("</td>");
129
130
- Match m = Regex.Match(test, regEx, options, timeout);
+ Match m = null;
131
+ try
132
+ {
133
+ m = Regex.Match(test, regEx, options, timeout);
134
+ }
135
+ catch (RegexMatchTimeoutException rmte)
136
137
+ sb.AppendLine("\t\t\t<td colspan=\"3\">ERROR: RegexMatchTimeoutException</td>");
138
+ sb.AppendLine("\t\t</tr>");
139
140
141
sb.Append("\t\t\t<td>");
142
sb.Append(Server.HtmlEncode(BooleanToString(m.Success)));
0 commit comments