From etiennesanchez2 at gmail.com  Sat Nov  4 13:14:10 2017
From: etiennesanchez2 at gmail.com (Etienne Sanchez)
Date: Sat, 4 Nov 2017 13:14:10 +0100
Subject: [Rd] Possible bug with a regex pattern
Message-ID: <CANgsd5_s8ZRCeTt7g=eADyg3EW+JZyy-ewOQZAfLd2FzEUkv-w@mail.gmail.com>

Dear list,

The following behaviour looks like a bug:

grepl("ab{,2}c", "abbbc")
# [1] TRUE

I would expect either FALSE or an "invalid regex" error.

More details can be found in the question I originally asked here:
https://stackoverflow.com/q/46999964/6656269

I've also opened an issue on the TRE github:
https://github.com/laurikari/tre/issues/62


Best,

Etienne



[Rd] Possible bug with a regex pattern
Etienne Sanchez