Regex for ... genealogical names
| From: | Lester Caine | Date: | Sat, 01 Jan 2011 09:46:39 +0000 |
| Subject: | Regex for ... genealogical names | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-310440@lists.php.net to get a copy of this message | ||
A slightly more complex problem than phone numbers ...
It is a sort of convention to use the format 'JohnDoeSMITH' or 'John Doe SMITH' where each forename starts with a capital and the surname is in upper case. I have a crude method of scanning for the capitals and splitting this to give me an array of name segments with [0] as the Surname and a variable number of Forenames, but is there an 'elegant' way via regex to extract this into an array?
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php