Message760
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 |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:10 | admin | link | issue623201 messages |
2008-02-20 17:17:10 | admin | create | |
|