I have a text string "test.a..34" I wish to extract the text that comes after ".." (e.g. "34"), and the text that comes before ".." (e.g. "test.a"). What is a good way to do this? Also, can you help me understand how to use "wildcards" such as "*" with sub, etc? #This seems to work, but I am unclear how it works: sub("\\*..", "", "test.a..34") #This does not work: sub("\\*..", "", "test.a..34")
--------------------------------- [[alternative HTML version deleted]] ______________________________________________ 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.