fork(1) download
  1. import re
  2.  
  3. print re.sub("(?<=[^a-zA-Z])pi(?=[^a-zA-Z])", "(math.pi)", "2pi3 + supirse")
Success #stdin #stdout 0.08s 10864KB
stdin
Standard input is empty
stdout
2(math.pi)3 + supirse