I get this error:
Error Type:
Microsoft VBScript compilation (0x800A0411)
Name redefined
/mackenzie/asp/fare_details.asp, line 284, column 4
Dim childexpression: Set childexpression = New RegExp
---^
__________________________________________________ ______
My Code:
Dim childexpression: Set childexpression = New RegExp
childexpression.Pattern = "[^:]*:([^,]*),?"
childexpression.Global = True
Dim childmatch, child_first_matches
Set child_first_matches = childexpression.Execute(theChStr)
For Each childmatch In child_first_matches
response.write "<tr><td align=left> " & childmatch.SubMatches(0) & "</td></tr>"
Next
Set child_first_matches = Nothing
Set childexpression = Nothing
__________________________________________________ _
Its referring to RegExp, but thats a ASP/
VB function is it not?
Not a variable?
I have this above the code above:
Dim expression: Set expression = New RegExp
but thats for something else.....
www.crmpicco.co.uk