Perl: the Markov chain saw | |
PerlMonks |
Re: Re: Re: Handling caps for surnames with capitals in the middle (was: Irish Surnames)by ariels (Curate) |
on May 06, 2002 at 12:02 UTC ( [id://164294]=note: print w/replies, xml ) | Need Help?? |
If it were my surname you were mauling, I'd be more than a bit annoyed. I get enough of my surname's Anglicised (actually Brazilinated, but it's close enough) form being auto-"corrected" into the original Russian. I am actually capable of spelling it correctly, and I do just that. That said, you could (assumes the surname starts off lower-cased). Other problems: not smart enough. E.g. <samp>'mack'</samp> becomes <samp>'MacK'</samp>, which is wrong; you might want .{3,} instead of .* in the regexp. But I really don't think you should be doing this...
In Section
Seekers of Perl Wisdom
|
|