You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 3969 Reporter: rillig Status: acknowledged (set by @damiendoligez on 2006-03-29T14:27:01Z) Resolution: open Priority: normal Severity: feature Version: 3.09.0 Category: otherlibs Tags: patch
Bug description
In Perl, one can write qr"start(?:alt1|alt2|alt3)(.*)end" to compile a regular expression that has only one capturing group, namely the second one. The first "group" is just an alternative. I have written a patch to support this feature in O'Caml too, since I don't know of another way to write the regexp above that is similarly short and readable.
Additional information
Unfortunately, this patch might change the behavior of some regular expressions that look like foo(?, because a question mark that appears at the start of a regular expression is taken literally.
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.
I would say that that the Str library is in maintenance mode: bugs will be fixed, but it's probably not getting new features. This, plus the fact that the proposed feature is not completely backward-compatible, suggest that we should close this PR.
Original bug ID: 3969
Reporter: rillig
Status: acknowledged (set by @damiendoligez on 2006-03-29T14:27:01Z)
Resolution: open
Priority: normal
Severity: feature
Version: 3.09.0
Category: otherlibs
Tags: patch
Bug description
In Perl, one can write qr"start(?:alt1|alt2|alt3)(.*)end" to compile a regular expression that has only one capturing group, namely the second one. The first "group" is just an alternative. I have written a patch to support this feature in O'Caml too, since I don't know of another way to write the regexp above that is similarly short and readable.
Additional information
Unfortunately, this patch might change the behavior of some regular expressions that look like foo(?, because a question mark that appears at the start of a regular expression is taken literally.
File attachments
The text was updated successfully, but these errors were encountered: