Re: [R] Number of words in a string

From: Hans-Joerg Bibiko <>
Date: Thu, 10 Apr 2008 08:31:10 +0200

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.


--Hans mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 10 Apr 2008 - 06:47:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 10 Apr 2008 - 07:30:28 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive