Regex not working
Can anyone tell me why my regex is not working on my cfinput textbox please. I only want to allow a-z as available charactors to enter and the below code fails.
<cfinput type="text"
id="surname"
name="surname"
class="txt"
title="Surname"
value="#presentsurname#"
validate="regex"
pattern="[a-z]"
message="Please enter a valid Surname."
maxlength="60" />
If i type in $$$ then the regex is flagged up and I get the error message displayed.
Although if I type in a$$, I get no error message.
Thanks,
G
