Re: [R] regex problems with the escape character

2009-08-18 Thread Gabor Grothendieck
On Mon, Aug 17, 2009 at 6:12 AM, Gabor Grothendieck wrote: > On Mon, Aug 17, 2009 at 3:21 AM, ravi wrote: >> Hi R-users and R-experts, >> I am having a hard time in figuring out how to tackle regex questions where >> the "backslash" character is an integral part of the string. Let me explain >> h

Re: [R] regex problems with the escape character

2009-08-17 Thread Gabor Grothendieck
s1 should use \\ like this: s1<- "C:\\Rtools\\bin;C:\\Rtools\\perl\\bin;C:\\Rtools\\MinGW\\bin;C:\\Program\\MiKTeX 2.7\\miktex\bin" Also 1. you won't need to change your path in the first place if you use the batchfiles at http://batchfiles.googlecode.com 2. there is also a free path editor disc

[R] regex problems with the escape character

2009-08-17 Thread ravi
Hi R-users and R-experts, I am having a hard time in figuring out how to tackle regex questions where the "backslash" character is an integral part of the string. Let me explain how I came across this problem : I wanted to clearly see all the components in the windows environmental path variable