fork download
  1. import re
  2.  
  3. text = """#include <Box2D/Dynamics/Joints/b2DistanceJoint.h>"""
  4. #print text
  5. print re.sub(r'<.*\/.*\/','<',text)
Success #stdin #stdout 0.01s 7852KB
stdin
Standard input is empty
stdout
#include <b2DistanceJoint.h>