I'm a newbie to RegExp. I'm having trouble validating a text field to only allow 8 characters, using any combination of 0-9, A-F. I have the following which validates fine for A-F, 8.
var targetChar = /[abcdef]{8}/
However I need to test for 0-9 as well. I know \d matches any digit [0-9] however I can't seem to get this to work when adding this in. Any help would be great. Thanks much.
var targetChar = /[abcdef]{8}/
However I need to test for 0-9 as well. I know \d matches any digit [0-9] however I can't seem to get this to work when adding this in. Any help would be great. Thanks much.