Regex problem [modified]
-
I have a method which uses regex.... shown below **string pattern = "(?.*)(?.*
)(?.*)"; string matchEvaluator = "${before} ${after}"; try { local_string = Regex.Replace(local_source, pattern, matchEvaluator); } catch (Exception er) { string g = er.Message; } string wr = HTMLWriter.htmlWriter.WriteHTMLFile(@"C:\trimExtras.html", local_string);** I want to remove certain part of html page with this regex the problem is it does not work... it takes a long time i.e hangs the app and when i write it to html file its still the same i.e does not replace any thing
modified on Friday, December 07, 2007 7:52:14 AM
-
I have a method which uses regex.... shown below **string pattern = "(?.*)(?.*
)(?.*)"; string matchEvaluator = "${before} ${after}"; try { local_string = Regex.Replace(local_source, pattern, matchEvaluator); } catch (Exception er) { string g = er.Message; } string wr = HTMLWriter.htmlWriter.WriteHTMLFile(@"C:\trimExtras.html", local_string);** I want to remove certain part of html page with this regex the problem is it does not work... it takes a long time i.e hangs the app and when i write it to html file its still the same i.e does not replace any thing
modified on Friday, December 07, 2007 7:52:14 AM