How to use grep and gsub functions in r programming | Regular expression example in r | R Tutorial