I have a list of bigrams that I would like to filter. Want to remove all bigrams with numbers, except for those that contain 2021 or 2020
cat <- seq(1,7)
bg <- c("2021 test", "z1 trip", "00034 job","18 mar", "2021 day","business unit", "cycle work")
df <- data.frame(cat,bg)
I have tried nested grepl, but is does not work
df %>% filter(!grepl("[[:digit:]]",!grepl("2020|2021",bg)))
