Hi all,
To validate a name input field, I would like to prevent people from entering silly things like 'KEVIN' or 'kEvIn', etc...Let's stick to "normal" stuff like 'Kevin'... No problem here... Until we get people like 'McEwen', who find their names transformed into 'Mcewen'... I started throwing some code at these "exceptions", but meanwhile I started wondering whether I'm just re-inventing the wheel... Does any one know of (have handy!) a few lines of code to handle standard KEVIN->Kevin changes, while preserving things like McDonald, O'Connor, Aye-Mu, etc?
Many thanks.



Let's stick to "normal" stuff like 'Kevin'... No problem here... Until we get people like 'McEwen', who find their names transformed into 'Mcewen'... I started throwing some code at these "exceptions", but meanwhile I started wondering whether I'm just re-inventing the wheel... Does any one know of (have handy!) a few lines of code to handle standard KEVIN->Kevin changes, while preserving things like McDonald, O'Connor, Aye-Mu, etc?



Bookmarks