Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I have been having problems finding out why this regular expression is not working. The error points to the first line of the below chunk of code.
--------------------------------
StringToSearch = File.FileName
Set RegularExpressionObject = New RegExp
RegularExpressionObject.Pattern = ".exe"
RegularExpressionObject.IgnoreCase = True
RegularExpressionObject.Global = True
Set expressionmatch = RegularExpressionObject.Execute(StringToSearch)
If expressionmatch Then
Response.Redirect "failed.html"
end if
I have been having problems finding out why this regular expression is not working. The error points to the first line of the below chunk of code.
--------------------------------
StringToSearch = File.FileName
Set RegularExpressionObject = New RegExp
RegularExpressionObject.Pattern = ".exe"
RegularExpressionObject.IgnoreCase = True
RegularExpressionObject.Global = True
Set expressionmatch = RegularExpressionObject.Execute(StringToSearch)
If expressionmatch Then
Response.Redirect "failed.html"
end if