Does anyone know of a reliable site that would have pre-made regexps that could be used for a variety of applications. Personally, I’m interested in finding regexps for a basic contact information form: Name, Address, City, etc…
@JonaNov 09.2004 — #[font=trebuchet ms]Although not a common practice, I'm willing to be your human reference at this point; what exactly are you looking to validate? That the characters given are indeed letters and exclusively letters?[/font]
@AdamBrillNov 09.2004 — #First off, why do /[a-zA-Z]/ instead of /a-z]/i? Not that it really matters, but...
Second, your regex(/a-zA-Z/) will only check if one of the characters in the string is an alpha character, it won't make sure that each character is. So the updated code would look like this: