fork download
  1. import re
  2. text = "/J&L/LK/Tac1_1/shareloc.pdf"
  3. print( re.sub(r'^.*?(\d+)_(\d+).*', r'\1.\2', text, flags=re.S) )
Success #stdin #stdout 0.03s 9556KB
stdin
Standard input is empty
stdout
1.1