View Single Post
  #1 (permalink)  
Old June 21st, 2006, 11:41 AM
jamara
Guest
 
Posts: n/a
Default error - Object doesn't support this property

I am getting an error "Object doesn't support this property or method" when trying to use RegExp. Has anyone run into this error message and can you tell me what the solution is?

Here is a code snippet if that's helpful:

    Dim ex, aMatch
    ex = New RegExp
    ex.IgnoreCase = False
    ex.Pattern = "^((?<lower>[a-z])|(?<upper>[A-Z])|(?<number>[\d])|(?<symbol>[=.*!@#$&*]).{8,15})+$"
    Set aMatch = ex.Execute(strNewPassword)

    If ex.aMatch(strPassword).Success = False Then
       Err.Description = "Please provide a valid password that contains at least one uppercase letter, one

lowercase letter, one number, one of these special characters =.*!@#$&* and is between 8 and 15 characters."
       Response.Write "<p>" & Err.Description & "</p>"
       Response.Write "<p><a href=""javascript:history.back(1)"">Back</a></p>"
    End If
Thanks!

Reply With Quote