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