Re: [Rd] Bug in PCRE interface code

2023-09-05 Thread Toby Hocking
BTW this is documented here http://pcre.org/current/doc/html/pcre2api.html#infoaboutpattern with a helpful example, copied below. As a simple example of the name/number table, consider the following pattern after compilation by the 8-bit library (assume PCRE2_EXTENDED is set, so white space - incl

[Rd] Bug in PCRE interface code

2023-09-04 Thread Duncan Murdoch
This Stackoverflow question https://stackoverflow.com/q/77036362 turned up a bug in the R PCRE interface. The example (currently in an edit to the original question) tried to use named capture with more than 127 named groups. Here's the code: append_unique_id <- function(x) { for (i in seq