Question
RegEx Help
I have a "UserID" field that can't have spaces or backslashes
in it. I've put together the following reg ex but it doesn't seem
to work and I'm not sure why. In other words, even if I type
"jdoe$" (which does not have a space or backslash) I still get the
pop-up from my cfinput. Can someone please shed some light?
<cfinput type="text" name="UserID" size="45" required="yes" message="Please make sure the UserID does not have spaces or backslahes." validate="regular_expression" pattern="[[:space:]\\]">
<cfinput type="text" name="UserID" size="45" required="yes" message="Please make sure the UserID does not have spaces or backslahes." validate="regular_expression" pattern="[[:space:]\\]">
