does anyone know of any good resources for php regex for form validation.
I am looking for good regex for
name: (including -.' and no spaces in the first space no doubles of ..''--
phone: again no spaces at the start allowing + and -
alpha: only lowercase letters no numbers no spaces allowing -_ but no doubles --__ or _-_-
alphaspace: same as above but with spaces allowing .',-_ but no double ..''--__
alphanumeric: same as alpha but with numbers
alphanumericspace: same as alphaspace but with numbers
date: dd-mm-yyyy
years: numeric maxiumum 2 numbers no spaces
i have been through 100 sites today only to find error after error
i found this one for email seems to work
$emailx ="/^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$/";