[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


in your console.

Furthermore search in the net for "regular expression".


There are some variants of regexp engine on the market but the core  
syntax should be the same.



More information about the R-help mailing list