On Sat, Oct 20, 2012 at 1:30 PM, Dennis Lee Bieber
<wlfr...@ix.netcom.com> wrote:
>> >>> for match in re.findall(pattern, "a test of capitalizing"):
>> ...   result = f(result + match)
>
>         result = result + f(match)
>
>         Or closer... Don't both with f and str.capitalize
>
>         result = result + match.capitalize()

These result in a string that is all-caps, not title-case.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to