> I want to keep only the part inside the two points. After lots of headache
> using grep() when trying something like this:
> 
> grep('.(.*?).','df.subject_test.RData',value=T)
> 
> 
> Does anyone have any suggestion ?

gsub("df\\.(.+)\\.RData", "\\1", 'df.subject_test.RData')


Steve E



*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}

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

Reply via email to