[R] Number of words in a string
Hans-Joerg Bibiko
bibiko at eva.mpg.de
Thu Apr 10 08:31:10 CEST 2008
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
More information about the R-help
mailing list