I'm trying to use regular expressions in my ASP.NET doc, and I'm running into a problem. This is how I've set it up:
Code:
<%@ import Namespace="System.Text.RegularExpressions" %>
<%
'Validate form data - required fields only
Dim RegularExpressionObject As Object
RegularExpressionObject = New RegExp
With RegularExpressionObject
.Pattern = "[A-Za-z0-9]"
.IgnoreCase = True
.Global = True
End With
%>
And this is the error that I'm receiving:
Compilation Error
Type 'RegExp' is not defined.
Line 77: Dim RegularExpressionObject As Object
Line 78:
Line 79: RegularExpressionObject = New RegExp
Line 80:
Line 81: With RegularExpressionObject
If anyone can give me some advice on my I'm getting this error message, it would be greatly appreciated. Thanks.
KWilliams
KWilliams