Hi, I'm using gsub, but I've a problem.
> print(i) [1] "piante_venere.csv" > gsub("\\.csv$", "", i) [1] "piante_venere" > gsub("^piante_", "", i) [1] "venere.csv" Can I combine the two expressions? Like this: > gsub(.....) [1] "venere" Thanks, Alfredo -- View this message in context: http://r.789695.n4.nabble.com/gsub-tp2316443p2316443.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list 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.