Re: [R] Parsing regular expressions differently - feature request

From: Wacek Kusnierczyk <Waclaw.Marcin.Kusnierczyk_at_idi.ntnu.no>
Date: Sun, 09 Nov 2008 00:21:26 +0100

Duncan Murdoch wrote:
>
>>>> Here's a quick hack to achieve the impossible:
>>> That might solve John's problem, but I doubt it. As far as I can see
>>> it won't handle \L, for example.
>>>
>>
>> well, it was not supposed to. it addresses the need for doubling
>> backslashes when a backslash character is an element of the regex.
>
> \L could be an element of a regex in Perl.
>
> Duncan Murdoch
>
indeed; but that's not something my PCRE will happily accept (try grep("\\LA", "a", perl=TRUE), which may possibly tell you just that). if not \L, what's your next best argument against mygrep?

vQ



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat 08 Nov 2008 - 23:27:45 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 Sun 09 Nov 2008 - 00:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive