fork download
  1. import re
  2. print( re.sub(r"\.(?![^.]*$)", "", r"./folder/thisisa.test/file.cxx.h") )
  3.  
Success #stdin #stdout 0.02s 9612KB
stdin
Standard input is empty
stdout
/folder/thisisatest/filecxx.h