I'm trying to validate certain alphanumeric characters within javascript and all works but a colon (:). My code is:
if (![\w_:.=\(\)@\-\/]/.test(field))
return false;
I've placed a \ in front of the : and moved the colon to other positions, tried it in its own brackets [:] but it just won't accept a colon.