Re: Using Groups inside Braces with Regular Expressions

2008-07-13 Thread John Machin
On Jul 14, 9:05 am, Chris <[EMAIL PROTECTED]> wrote: Misleading subject. [] brackets or "square brackets" {} braces or "curly brackets" () parentheses or "round brackets" > I'm trying to delimit sentences in a block of text by defining the > end-of-sentence marker as a period followed by a spac

Re: Using Groups inside Braces with Regular Expressions

2008-07-13 Thread Chris
On Jul 13, 8:14 pm, MRAB <[EMAIL PROTECTED]> wrote: > On Jul 14, 12:05 am, Chris <[EMAIL PROTECTED]> wrote:> I'm trying to delimit > sentences in a block of text by defining the > > end-of-sentence marker as a period followed by a space followed by an > > uppercase letter or end-of-string. > > >

Re: Using Groups inside Braces with Regular Expressions

2008-07-13 Thread MRAB
On Jul 14, 12:05 am, Chris <[EMAIL PROTECTED]> wrote: > I'm trying to delimit  sentences in a block of text by defining the > end-of-sentence marker as a period followed by a space followed by an > uppercase letter or end-of-string. > > I'd imagine the regex for that would look something like: > [^

Using Groups inside Braces with Regular Expressions

2008-07-13 Thread Chris
I'm trying to delimit sentences in a block of text by defining the end-of-sentence marker as a period followed by a space followed by an uppercase letter or end-of-string. I'd imagine the regex for that would look something like: [^(?:[A-Z]|$)]\.\s+(?=[A-Z]|$) However, Python keeps giving me an