import remethod = 'images/:id/huge'print(re.sub(r':[a-z]+', r'<span>\g<0></span>', method))
Standard input is empty
images/<span>:id</span>/huge
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!