Re: Regex Matching on Readline()

2007-12-20 Thread John Machin
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

Re: Regex Matching on Readline()

2007-12-20 Thread jwwest
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 "

Re: Regex Matching on Readline()

2007-12-20 Thread John Machin
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