fork(2) download
  1. subject <- "Some [string] here and [there]"
  2. gsub("\\[([^]]*)\\]", "{\\1}", subject)
Success #stdin #stdout 0.22s 60752KB
stdin
Standard input is empty
stdout
[1] "Some {string} here and {there}"