[thelist] RegExp: unexpected quantifier error

Tab Alleman Tab.Alleman at MetroGuide.com
Thu Sep 11 14:47:08 CDT 2003


Ok, this time I think I am well and truly stuck.  I can't see *why* my
code isn't working, but it isn't.  Here it is:

<%
	Set orePerNight = New regexp
	orePerNight.Global = False
	orePerNight.IgnoreCase = True
	
	orePerNight.Pattern = "^PER NIGHT STARTING
[0-9]?[0-9]\b?[A-Z][A-Z][A-Z] FOR (.*) NIGHTS?$"

	Set oreMatchPN = orePerNight.Execute("PER NIGHT STARTING 23 NOV
FOR 5 NIGHTS")
%>

I get the following error on the last line:
---------------
Microsoft VBScript runtime error '800a139a' 

Unexpected quantifier 
-----------------


What is the deal?


More information about the thelist mailing list