fork(1) download
  1. ## Base R PCRE pattern
  2. x <- "abcde\n fghij<FooBar>"
  3. regmatches(x, regexec("(?s)(.*)<FooBar>",x, perl=TRUE))[[1]][2]
Success #stdin #stdout 0.28s 39420KB
stdin
Standard input is empty
stdout
[1] "abcde\n\t\tfghij"