[R] problem for strsplit function

Greg Minshall m|n@h@|| @end|ng |rom um|ch@edu
Thu Jul 8 07:36:43 CEST 2021


> 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.



More information about the R-help mailing list