[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] First experience with std::regex from gcc 11 and CTRE in test_
From: |
Greg Chicares |
Subject: |
Re: [lmi] First experience with std::regex from gcc 11 and CTRE in test_coding_rules |
Date: |
Thu, 3 Jun 2021 10:41:11 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 |
On 6/3/21 12:55 AM, Vadim Zeitlin wrote:
[...]
> Sorry, I forgot to mention that there is another rather annoying problem
> with it that I discovered today: it doesn't seem to properly support
> backtracking, i.e. "a.*b" is never going to find anything because ".*"
> will consume "b". This could be a blessing in disguise because we'd need to
> rewrite all inefficient regexes that rely on it to avoid backtracking
IOW, we should replace 'a.*b' with 'a[^b]*b'?