I trust the escapes to do what they are designed to do. Cat the pattern to the console if you don't.
On July 7, 2021 10:36:43 PM PDT, Greg Minshall <minsh...@umich.edu> wrote: >> sub( "\\.[^.]*$", "", fname ) > >fwiw, i almost always use '[.]' in preference to '\\\\\\\\.', as it >seems to be more likely to get through the various levels of quoting in >different contexts. -- Sent from my phone. Please excuse my brevity. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.