$correct_case = &case_surname("DE SILVA-MACNAY",$lc_prefix); # De Silv
+a-MacNay
would seem to agree, but perhaps you should check out the complete description of that module? | [reply] [Watch: Dir/Any] [d/l] |
I think it is a little bit more complicated than that.
What about Carolina Klüft, our heptathlon champion from the Olympic Games and what about IBM is that a surname?
| [reply] [Watch: Dir/Any] |
I hope that among the 26 letters of the alphabet you're referring to, is the ñ... My surname is Muñoz, and frankly I'm quite tired of being Mu#oz, Munoz or even Mu_oz. Also, you have to think about ü and other fancy characters.
Best regards
-lem, but some call me fokat
| [reply] [Watch: Dir/Any] |
Remember not to put a minimal length > 1 on Surnames. I've been told, when I suggested a minimal length of 2, that there is a chinese colleague who's surname is X.
| [reply] [Watch: Dir/Any] |
Strange... I thought it would be Muñoz ;-)
| [reply] [Watch: Dir/Any] |
Then there's O'Brian etc
Dave. | [reply] [Watch: Dir/Any] |
| [reply] [Watch: Dir/Any] |
I'd think that a surname could contain an apostrophe (') too.
Thus, you might want something like
param("surname")=~/^[\pL\- '.]+$/ and $surname = $1;
Update there are surnames with dots too, so I've added
it too.
| [reply] [Watch: Dir/Any] [d/l] |