go ahead... be a heretic | |
PerlMonks |
Re^2: removing accentby fizbin (Chaplain) |
on Aug 23, 2005 at 02:57 UTC ( [id://485807]=note: print w/replies, xml ) | Need Help?? |
Ouch. I mean, okay, munging the name of the letter is a cute hack, but there's a much, much easier way if you've got the Unicode::Normalize module available to you - just ask for the NFD or NFKD of the string, and then do a regular expression substitution to eliminate combining marks: s/\pM//g
In Section
Seekers of Perl Wisdom
|
|