I ran across this rather odd behaviour. Perhaps I'm making a mistake:
try the following in python, and in jython.
re.sub("([^.]*).*",r"\1.pdf","Safety strategy 280306.doc")
In python, I get the expected: 'Safety strategy 280306.pdf'
in jython, I get 'Safety strategy 280306.pdf.pdf'
What's going on? Do you guys get the same result? I'm running Jython
2.1 on java1.4.1_02