0
Answer

Regex help required

Ask a question
smith

smith

19y
2k
1
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.