Possible Duplicate:
Regex to allow A-Z, – and '
I have a form that asks for a name, and the name must not contain any numbers but can have a (‘) or a (-) e.g O’Neal, O-man.
I’ve already used is_string() but it seems to be strict, does any one of you know how to validate a string that accepts those kinds of values?
Try this: