smith

smith

  • NA
  • 1
  • 0

Regex help required

May 27 2005 7:17 AM
Hi all I'm doing a small project, but being quite new to C# and asp.net, Im having some trouble. Basically Im developing a small web service to calculate shipping costs. My problem at the moment is developing the regex. I need a regex to ensure that only certain exact values, and nothing else, is entered. These values are the states of australia: NSW, VIC, QLD, SA, WA, NT, ACT, TAS [NSW]*[VIC]*[QLD]* etc is what Im thinking, but I think Im on the wrong track there. Any help greatly appreciated.