R
Ralf Hermanns
In my project, I get the HTML code of a website, and I need to check for
three texts: "Mail was send to...", "No data matching your search input"
and "Request timed out"
Problem is, one of the matches fits always and comes back very fast, the
two others take forever to execute (and confirm this text is NOT in the
page given back). With "fast" I mean "not measureable quick" and by
"slow" I mean around 3 minutes!
The webpage (=the text searched in) is between 60 and 150 kb long, the
patters are searched with
Dim m4 As Match = Regex.Match(ResponsePage, ".*Script\stimed\sout.*",
RegexOptions.Singleline Or RegexOptions.IgnoreCase)
Is that the normal behaviour of a RegEx to need so long to confirm
something is NOT in the text? Can I speed that up or avoid or???
Thanks!
Ralf
three texts: "Mail was send to...", "No data matching your search input"
and "Request timed out"
Problem is, one of the matches fits always and comes back very fast, the
two others take forever to execute (and confirm this text is NOT in the
page given back). With "fast" I mean "not measureable quick" and by
"slow" I mean around 3 minutes!
The webpage (=the text searched in) is between 60 and 150 kb long, the
patters are searched with
Dim m4 As Match = Regex.Match(ResponsePage, ".*Script\stimed\sout.*",
RegexOptions.Singleline Or RegexOptions.IgnoreCase)
Is that the normal behaviour of a RegEx to need so long to confirm
something is NOT in the text? Can I speed that up or avoid or???
Thanks!
Ralf