On Aug 1, 12:53 pm, dusans <[EMAIL PROTECTED]> wrote:
> On Jul 31, 10:07 pm, [EMAIL PROTECTED] wrote:
>
>
>
>
>
> > I am using regular expressions to search a string (always full
> > sentences, maybe more than one sentence) for common abbreviations and
> > remove the periods. I need to break the s
On Jul 31, 10:07 pm, [EMAIL PROTECTED] wrote:
> I am using regular expressions to search a string (always full
> sentences, maybe more than one sentence) for common abbreviations and
> remove the periods. I need to break the string into different
> sentences but split('.') doesn't solve the whole
On Jul 31, 9:07 pm, [EMAIL PROTECTED] wrote:
> I am using regular expressions to search a string (always full
> sentences, maybe more than one sentence) for common abbreviations and
> remove the periods. I need to break the string into different
> sentences but split('.') doesn't solve the whole p
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 abbre
On Jul 31, 3:56 pm, Mensanator <[EMAIL PROTECTED]> wrote:
> On Jul 31, 3:07 pm, [EMAIL PROTECTED] wrote:
>
>
>
>
>
> > I am using regular expressions to search a string (always full
> > sentences, maybe more than one sentence) for common abbreviations and
> > remove the periods. I need to break th
On Jul 31, 3:07 pm, [EMAIL PROTECTED] wrote:
> I am using regular expressions to search a string (always full
> sentences, maybe more than one sentence) for common abbreviations and
> remove the periods. I need to break the string into different
> sentences but split('.') doesn't solve the whole p