I am using a reg exp validator and I can not get the reg expression exactly how I want it. Below is my Reg Ex.
What I want is for the reg Expression to allow either a # or a * one time OR allow a string of [Numbers or *]-[Numbers or *] 0-9 times.
Some examples would be ...
Ex. 1 = *
Ex. 2 = #
Ex. 3 = 12345678-123456789
Ex. 4 = *-1234
Ex. 5 = 1234-*
Please any help would be great!
Thanks,
Trevor
((#\*){1}) | (([0-9\*]{1,9})+-+([0-9\*]{1,9}))
What I want is for the reg Expression to allow either a # or a * one time OR allow a string of [Numbers or *]-[Numbers or *] 0-9 times.
Some examples would be ...
Ex. 1 = *
Ex. 2 = #
Ex. 3 = 12345678-123456789
Ex. 4 = *-1234
Ex. 5 = 1234-*
Please any help would be great!
Thanks,
Trevor