Message689

Author nobody
Recipients
Date 2002-07-17.04:06:57
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The code

import re
str = '<a><b>text</b></a>'
print re.match(r'^<([a-z]+)[^>]*>(.+)</\1>$', str).group(2)
print re.match(r'^<([a-z]+)[^>]*>(.+)</\1>$', str, re.I).group
(2)

prints

<b>text</b>
<b>text</b>

under CPython (which is correct) but under Jython it 
produces

<b>text</b>
text</b>
History
Date User Action Args
2008-02-20 17:17:07adminlinkissue582618 messages
2008-02-20 17:17:07admincreate