fork download
  1. str_vec <- c("TAG a", "TAG b-3", "TAG c+2", "2+TAG d")
  2. stringr::str_extract(str_vec, "TAG [^+-]*")
  3.  
Success #stdin #stdout 0.31s 42104KB
stdin
Standard input is empty
stdout
[1] "TAG a" "TAG b" "TAG c" "TAG d"