Re: [R] Matching a period in grep...

2008-08-05 Thread Marc Schwartz
on 08/05/2008 08:55 PM [EMAIL PROTECTED] wrote: Hi folks, Can anyone enlighten me as to why I get the following when I search for ".csv" at the end of a string? grep("\.csv$","Blah.csv",value=TRUE) [1] "Blah.csv" Warning messages: 1: '\.' is an unrecognized escape in a character string 2:

[R] Matching a period in grep...

2008-08-05 Thread Alec.Zwart
Hi folks, Can anyone enlighten me as to why I get the following when I search for ".csv" at the end of a string? > grep("\.csv$","Blah.csv",value=TRUE) [1] "Blah.csv" Warning messages: 1: '\.' is an unrecognized escape in a character string 2: unrecognized escape removed from "[\.]csv$" R re