Forum Moderators: coopster
/[^a-zA-Z]+/
This will also work:
'/[^A-Z]+/i' (same thing, case-insensitive modifer)
Careful how you use this, Note from Dr. Doc: [webmasterworld.com]
"Sorry, your name must only contain letters (A-Z)" error message. Let me assure you that my full legal name contains nothing but letters. Let me also assure you that A-Z are not the only letters out there. Even worse -- occasionally the "non-letter" is just silently removed.