Re: [Rd] grep problem in R-devel 2.14 r57004

2011-09-16 Thread Simon Urbanek
I forgot to mention the more obvious ;) - yes, it is a known issue in PCRE 8.13 which is hitting more people. After re-reading the standard I think the problem was that PCRE did not require enclosing [ to treat [. as special. This has been addressed in the PCRE trunk since and it also has a com

Re: [Rd] grep problem in R-devel 2.14 r57004

2011-09-16 Thread Simon Urbanek
Mark, quick googling gives the answer - [.] is not what you think it is, you probably meant [\.]. Bracket expressions starting with [. are collating symbols which is unsupported by PCRE (only [:xxx:] is supported, neither [=xxx=] nor [.xxx.] is) but that's probably not what you intended. See POS

[Rd] grep problem in R-devel 2.14 r57004

2011-09-15 Thread Mark.Bravington
Problem below with PCRE grep in R-devel; works fine in R-patched. (Unless there's been an absolutely massive change in rules for updated PCRE version 8.13; jeez I hope not) > grep( '[.][.]', '', perl=TRUE) Error in grep("[.][.]", "", perl = TRUE) : invalid regular expression '[.][.]' In additi