From: yvon.thoravallist@... (Yvon Thoraval) Date: 2003-09-24T22:59:06+09:00 Subject: Re: [newbie] upper to lower first letter of a word Robert Klemme wrote: > 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 } yes, fine, i discovered also that capitalization don't work on accentuated chars (as �) then i've done another step for those "special" chars being as the first letter of a xord > Alternatively: > > l.gsub!(/[^\s!?.;:-]+/) {|w| black_list.include?(w) ? w : w.capitalize } ok, however in my list no punctuation as ?!;:... only " " and "-" -- Yvon