how to get rid of / in string in r code example Example: delete rows from string vector r according to regex df[ grep("REVERSE", df$Name, invert = TRUE) , ]