fork(1) download
  1. x <- c("[@Fotheringham1981]", "df[1,2]")
  2. gsub("\\[@([^]]*)]", "\\\\cite{\\1}", x)
Success #stdin #stdout 0.44s 22816KB
stdin
Standard input is empty
stdout
[1] "\\cite{Fotheringham1981}" "df[1,2]"