D
dz
Hi,
I'have a problem with the following code that I've put in a aspx page:
Regex exp = new Regex(@"(hello).* (border).*");
Match m = exp.Match("sdf <table border hello>");
i=m.Index;
return i;
I want to pass a html page to this function, and, if all is workly
correctly, i want that this code return the position of the match in the
html (that is in a string..).
In the example the code must return 4.
I have test the regexp outside c# and is working, but, in this code, the
function return always 1 like index.
Who can help me? Thanks!
I'have a problem with the following code that I've put in a aspx page:
Regex exp = new Regex(@"(hello).* (border).*");
Match m = exp.Match("sdf <table border hello>");
i=m.Index;
return i;
I want to pass a html page to this function, and, if all is workly
correctly, i want that this code return the position of the match in the
html (that is in a string..).
In the example the code must return 4.
I have test the regexp outside c# and is working, but, in this code, the
function return always 1 like index.
Who can help me? Thanks!