On Jul 31, 3:07 pm, [EMAIL PROTECTED] wrote:
>
> middle_abbr = re.compile('[A-Za-z0-9]\.[A-Za-z0-9]\.')
>

When defining re's with string literals, it is good practice to use
the raw string literal format (precede with an 'r'):
    middle_abbr = re.compile(r'[A-Za-z0-9]\.[A-Za-z0-9]\.')

What abbreviations have numeric digits in them?

I hope your input string doesn't include something like this:
    For a good approximation of pi, use 3.1.

-- Paul
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to