October 19th, 2011, 08:23 AM
Simple RegEx Pattern- Im half way there
Need a little help with my RegEx, I am half way there but can't figure out the last bit
I want the Regex to match.
I don't mind how long the numbers are, but the dashes in the middle can only be 1 long
My regex so far
but will also match
I just need the Regex to only allow 1 dash in the middle
Thanks for any help
October 19th, 2011, 01:32 PM
It needs to match against numbers, maybe followed by a hyphen and more numbers, maybe followed by a hyphen and more numbers...