fork(1) download
  1. import re
  2. print(re.sub(r"[.$+?{}()\[\]\\]", r"\\\g<0>", '[.$+?{}()[]\\]'))
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
\[\.\$\+\?\{\}\(\)\[\]\\\]