fork download
  1. s <- "abcde\n fghij<Foobar>"
  2. regmatches(s, regexec("(.*)<Foobar>", s))[[1]][2]
  3.  
Success #stdin #stdout 0.16s 178496KB
stdin
Standard input is empty
stdout
[1] "abcde\n    fghij"