I want to check if an
string of digits is on the form of xxxxxx-xxxx, this should be done with an regular expression right? My problem is that I cannot seem to write an correct
pattern. I read that in an pattern, the \d escape character is any digit 0 - 9, but I get an illegal escape character error... How is this done? I've tried
but it doesn't work when I type strNumber as "000000-0000"
/edit
Sorry, I had made an error in checking if that example string would work, so that works, but I want it to be able to be something else than 000000-0000

[ September 16, 2003: Message edited by: Carl Pettersson ]