Winston
Junior Contributor
Ok i'm trying to validate that the text is in the format of
oneOrMoreDigits - oneOrMoreDigits
i.e. 56 - 577
0-234
this is what i have
[\d]+ [-] [\d]+
Why on earth doesn't that validate?
I'm trying to make it so it only validates like that, and that if there's any other foriegh characters inserted in there, it will fail.
Thanks guys.
oneOrMoreDigits - oneOrMoreDigits
i.e. 56 - 577
0-234
this is what i have
[\d]+ [-] [\d]+
Why on earth doesn't that validate?
I'm trying to make it so it only validates like that, and that if there's any other foriegh characters inserted in there, it will fail.
Thanks guys.