D
Dan Hargrove
I'm using the regex class to try and search a string for line feeds,
carriage returns, and tabs. In a windows test app, I can enter the
expression of \\[rnt] and this works fine. But in the ASP.net app, the same
expression does not work, even though the same process and test strings are
being used. Here's the set of code to test this process on the ASP.net page
that I'm using:
string strExpression = @"\\[rnt]";
System.Text.RegularExpressions.Regex objRegEx = new Regex(strExpression);
System.Text.RegularExpressions.Match objMatch = objRegEx.Match(strMsgBody);
Again, note that this works using the windows forms app. The only difference
is that the expression is input into a text box. Just for grins, I put a
text box on the ASP.net page and entered the expression there as well -
still no success.
Anybody have any thoughts on this?
Thanks in advance,
Dan
carriage returns, and tabs. In a windows test app, I can enter the
expression of \\[rnt] and this works fine. But in the ASP.net app, the same
expression does not work, even though the same process and test strings are
being used. Here's the set of code to test this process on the ASP.net page
that I'm using:
string strExpression = @"\\[rnt]";
System.Text.RegularExpressions.Regex objRegEx = new Regex(strExpression);
System.Text.RegularExpressions.Match objMatch = objRegEx.Match(strMsgBody);
Again, note that this works using the windows forms app. The only difference
is that the expression is input into a text box. Just for grins, I put a
text box on the ASP.net page and entered the expression there as well -
still no success.
Anybody have any thoughts on this?
Thanks in advance,
Dan