regex error

Paul Backus snarwin at gmail.com
Sun Nov 23 14:24:54 UTC 2025


On Sunday, 23 November 2025 at 12:43:05 UTC, Jabba Laci wrote:
>     auto m1 = matchFirst(s, regex(r"(..).*\1"));
>
> returns an empty m1 object. What am I doing wrong? The same 
> regex works in Python.

This is a bug, first reported in 2015:

https://issues.dlang.org/show_bug.cgi?id=15489


More information about the Digitalmars-d-learn mailing list