## Base R PCRE patternx <- "abcde\n fghij<FooBar>"regmatches(x, regexec("(?s)(.*)<FooBar>",x, perl=TRUE))[[1]][2]
Standard input is empty
[1] "abcde\n\t\tfghij"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!