On Dec 21, 7:21 am, jwwest <[EMAIL PROTECTED]> wrote:
> On Dec 20, 2:13 pm, John Machin <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Dec 21, 6:50 am, jwwest <[EMAIL PROTECTED]> wrote:
>
> > > Anyone have any trouble pattern matching on lines returned by
> > > readline? Here's an example:
>
> > > string
On Dec 20, 2:13 pm, John Machin <[EMAIL PROTECTED]> wrote:
> On Dec 21, 6:50 am, jwwest <[EMAIL PROTECTED]> wrote:
>
>
>
> > Anyone have any trouble pattern matching on lines returned by
> > readline? Here's an example:
>
> > string = "Accounting - General"
> > pat = ".+\s-"
>
> > Should match on "
On Dec 21, 6:50 am, jwwest <[EMAIL PROTECTED]> wrote:
> Anyone have any trouble pattern matching on lines returned by
> readline? Here's an example:
>
> string = "Accounting - General"
> pat = ".+\s-"
>
> Should match on "Accounting -". However, if I read that string in from
> a file it will not ma