I'm trying to modify an ASP classic file search engine ( since it now finds VB code inside the files. I'm trying to change the regular expression pattern used to avoid searching inside HTML tags to also include <% VBScript tags %>.
Trying to escape the percentage signs with backslashes doesn't really work, and after Googling for an hour, I'm stuck.
Any regexp wizards hovering around?![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Code:
[b]Original code[/b]
'objRegExp.Pattern = "<[^>]*>"
'strFileContents = objRegExp.Replace(strFileContents,"")
[b]Modified code (not working)[/b]
objRegExp.Pattern = "<\%[^>]*\%\>"
Trying to escape the percentage signs with backslashes doesn't really work, and after Googling for an hour, I'm stuck.
Any regexp wizards hovering around?