Bug 18499 – std.regex cannot handle (?i:)

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-02-22T20:12:48Z
Last change time
2024-12-01T16:32:57Z
Assigned to
No Owner
Creator
Jacob Carlborg
Moved to GitHub: phobos#10317 →

Comments

Comment #0 by doob — 2018-02-22T20:12:48Z
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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10317 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB