fork download
  1. my_names <- c('a\nb\nc')
  2.  
  3. library(stringr)
  4.  
  5. str_extract(my_names, regex('a.*b.*', dotall=TRUE))
  6.  
Success #stdin #stdout 0.23s 190400KB
stdin
Standard input is empty
stdout
[1] "a\nb\nc"