On 10 Apr 2008, at 07:43, Shubha Vishwanath Karanth wrote: > So powerful, the gsub... But I really don’t understand the how the > regular expressions like " *\\S+$", need to be used and how to make > best use of it... Any article/material/links that I can go through?
A good starting point is: type ?regex in your console. Furthermore search in the net for "regular expression". http://en.wikipedia.org/wiki/Regular_expression http://en.wikipedia.org/wiki/Regular_expression_examples http://www.regular-expressions.info/ There are some variants of regexp engine on the market but the core syntax should be the same. Regards, --Hans ______________________________________________ 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.