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
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.
>
> >
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:
> [^
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