x <- "Status\nActive\nHometown\n"library(stringr)stringr::str_extract(x, "(?<=Status\\n).*")## orstringr::str_extract(x, "(?<=Status\n).*")
Standard input is empty
[1] "Active" [1] "Active"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!