fork(7) download
  1. import re
  2. method = 'images/:id/huge'
  3. print(re.sub(r':[a-z]+', r'<span>\g<0></span>', method))
Success #stdin #stdout 0.02s 27744KB
stdin
Standard input is empty
stdout
images/<span>:id</span>/huge