From: Robert Klemme Date: 2003-09-24T18:58:34+09:00 Subject: Re: [newbie] upper to lower first letter of a word "Yvon Thoraval" schrieb im Newsbeitrag news:1g1r8u8.1hzv3mvupjeizN%yvon.thoravallist@-SUPPRIMEZ-free.fr.invalid... > Mark J. Reed wrote: > > > Really? That's arguably a bug. What character encoding are you using? > > I'm (more-or-less) sure about that because even if i put : > l.gsub!(/\b[a-z������������������]+/) { |w| black_list.include?(w) ? w > : w.capitalize } I'd omit the "\b" at the beginning since "�" then still matches a word boundry: l.gsub!(/[a-z������������������]+/) { |w| black_list.include?(w) ? w : w.capitalize } Alternatively: l.gsub!(/[^\s!?.;:-]+/) {|w| black_list.include?(w) ? w : w.capitalize } Regards robert