Message760

Author kjohnson
Recipients
Date 2002-10-14.20:12:11
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
There seems to be a problem with IGNORECASE and the re [^.]

Here is a test progrom:

import re

data = 'Instructions: First sentence. Second sentence.'

instRe = r'[^.]*\.'  # Find everything to the first period

print re.search(instRe, data).group(0)
print re.search(instRe, data, re.IGNORECASE).group(0)

#####
Under Jython 2.1 the output is 
Instructions: First sentence.
Instructions: First sentence. Second sentence.

Under Python 2.2.1 the output is 
Instructions: First sentence.
Instructions: First sentence.


Kent Johnson
History
Date User Action Args
2008-02-20 17:17:10adminlinkissue623201 messages
2008-02-20 17:17:10admincreate