validating a surname - regexp fu
hey folks
I seem to have got myself into a tangle with a bit of regexp work.
I need an expression which can be used to validate a surname, ie it will allow a-zA-Z , single spaces, hypens (-), single quotes (')
such that the following are passed:
Jones
O'reilly
Langly-Smith
Van Schnee
preferrably using PCRE syntax, with POSIX [:alpha;] - type expressions if needed.
anyone got such a regexp lurking?
thanks,
christo
|