I need some more regular expression help
Posted on 2003-02-27
<cfelseif NOT REFindNoCase ('[a-z0-9-]',#form.base#)>
<cfoutput>Word contains invalid characters</cfoutput>
This code works great if the word I put in the form field is "@#$%@$#%" but if the word contains a-z or 0-9 AND invalid characters, "word@#$here" it doesn't give the error. The only characters I want to allow are a-z,0-9 and hyphens. Please help. Thank you.