As reported in the forums..
Using the "remove" option for SetUnknowns is very
costly and in a test case I was working with was
causing a 10 second delay processing about 1,000
unmatched tags.
If you're just removing all the remaining tags
indiscriminately there is no reason to walk through each
match, and a shotgun replace would do more effectively
IMO. The method below added no measurable process
time.
Thanks for the great product.
Here is my fix and would suggest looking at incorporating
it in the release.
Line 314:
Set Matches = p_regexp.Execute(p_template)
for each match in Matches
'Response.Write "Found match: " & match & "<br>"
p_regexp.Pattern = match.Value
p_template = p_regexp.Replace(p_template, "")
next
Replace with:
p_template = p_regexp.Replace(p_template, "")
Logged In: YES
user_id=1124274
Originator: NO
Thanks for the patch. I know this is a long time ago, but would you happen to have a test case of the asp file and also the template file?
Thanks.