fork(3) download
  1. import re
  2. teststring = "Lorem 'hello_kitty.cmd?command91' ipsum hello_kitty.cmd?command92"
  3. print(re.sub(r"'\w+\.\w{3}[^']*'", "'x'", teststring))
Success #stdin #stdout 0s 23352KB
stdin
Standard input is empty
stdout
Lorem 'x' ipsum hello_kitty.cmd?command92