Compiling and running the following code:
import std.regex;
void main()
{
regex(`(?i:)`);
}
Gives the following runtime exception:
phobos/std/regex/internal/parser.d(1018): 's', 'x', 'i', 'm' or '-' expected after '(?'
Pattern with error: `(?i:` <--HERE-- `)`
Pattern with error: `(?i:` <--HERE-- `)`
Is this a bug or does std.regex not support this syntax?
Comment #1 by tiberiulepadatu14 — 2018-10-21T14:45:49Z
Even if this is not a bug rather a feature that is not supported in the
regex library, I think that the error output should write that ":" is
not allowed after "?i".
Comment #2 by robert.schadek — 2024-12-01T16:32:57Z