[thelist] RegExp: extracting a substring

Tab Alleman Tab.Alleman at MetroGuide.com
Thu Sep 11 16:08:03 CDT 2003


I finally got my RegExp woes resolved.

The pattern that finally worked was:  "^PER NIGHT STARTING
[0-9]{1,2}\s?[A-Z]{3} FOR (\d{1,2}) NIGHTS?$"

For some reason it didn't like the "\b?" in the middle of the
"[0-9]{1,2}\b?[A-Z]{3}" part, but "\s?" is ok.

*shrug*

Thanks for being there.  Hehehe...


More information about the thelist mailing list