You can only use a regular expression in the search string, in the replace string it is just a character string. I can't think of a way to do what you want using gsub(). You will either have to get over your distaste for toupper or write a loop to test and modify each character. CaKiwi
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.