import reprint( re.sub(r"\.(?![^.]*$)", "", r"./folder/thisisa.test/file.cxx.h") )
Standard input is empty
/folder/thisisatest/filecxx.h
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!