Rebecca,
I think this is the regular expression for your desired pattern:
^[0-9]{1,5}(-[0-9]{3})?$
I hope this helps.
Cheers,
[ simon.cpu ]
>I'm having a heck of a time with this... trying to build a javascript
>regExp for the following pattern:
>[1-5 digits] [optional hyphen and 3 digit
I'm having a heck of a time with this... trying to build a javascript
regExp for the following pattern:
[1-5 digits] [optional hyphen and 3 digits]
If anyone can help, I'd give you a big hug.
~|
Find out how CFTicket can increase
2 matches
Mail list logo