I have a Cold Fusion form using <CFinput> and I need to validate that the field is only:
letters - upper and lower case are OK
numbers are OK
hyphens are OK
but no special characters like / \.,?! spaces etc
This field will become the name of a file.
<cfinput type="text" name="myfilename" message=" " pattern=" " validateat="onSubmit" validate="regular_expression" required="yes">