I\'d like to use regex to see if a string does not begin with a certain pattern. While I can use: [^ to blacklist certain characters, I can\'t figure out how to
[^
There is now (years later) another possibility with the stringr package.
stringr
library(stringr) str_detect("dsadsf", "^abc", negate = TRUE) #> [1] TRUE str_detect("abcff", "^abc", negate = TRUE) #> [1] FALSE
Created on 2020-01-13 by the reprex package (v0.3.0)