import retext = "/J&L/LK/Tac1_1/shareloc.pdf"print( re.sub(r'^.*?(\d+)_(\d+).*', r'\1.\2', text, flags=re.S) )
Standard input is empty
1.1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!