Skip to content
Prev 371024 / 398498 Next

Flummoxed by gsub().

On 23/08/17 18:33, Stefan Evert wrote:

            
OK.  I see that now.  I don't think that it's really stated anywhere 
that to search for (and possibly change) any one of a string of 
characters you enclose that string of characters in brackets [  ].

The first example from ?grep makes this "clear" (for some value of the 
word "clear") once you understand what this example is on about.

So it's "obvious" once you've been shown, and totally opaque until then.
Yup.  Got it.  Thanks very much.

cheers,

Rolf