import re text = """#include <Box2D/Dynamics/Joints/b2DistanceJoint.h>"""#print textprint re.sub(r'<.*\/.*\/','<',text)
Standard input is empty
#include <b2DistanceJoint.h>
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!