Can anyone assist me in creating a necessary REGEX patter to verify that an entry is in the format of #####-#####?
The input is to be a range of numbers, so the part on the left needs to be less than the part on the right. The range must be separated by a hyphen. There can be any number of digits up to 5 on each side. All of the following would be valid:
1-25
100-199
1000-2000
31000-34000
I figured out how to use the regular expressions in my VB.net code, but formulating the expression is still eluding me.
Any help is greatly appreciated. Thank you.
The input is to be a range of numbers, so the part on the left needs to be less than the part on the right. The range must be separated by a hyphen. There can be any number of digits up to 5 on each side. All of the following would be valid:
1-25
100-199
1000-2000
31000-34000
I figured out how to use the regular expressions in my VB.net code, but formulating the expression is still eluding me.
Any help is greatly appreciated. Thank you.