Closed GoogleCodeExporter closed 9 years ago
Referring to an open group is disallowed because re disallows it.
Perl seems to allow it, but I'll have to check exactly what happens and what
changes I may need to make.
Should it be allowed for version 0 behaviour, or just version 1?
Original comment by re...@mrabarnett.plus.com
on 26 Sep 2011 at 11:35
I am actually not sure, what should fall under version-1-only functionality. If
there is some indication, that in re this is disallowed by design, rather than
simply not supported (like in many other cases compared to regex), then it
would go into V1.
Given the error message in re "bogus escape:...", it seems to be taken as
unknown group, whereas regex seems to already recognise it.
Personally I can't think of a compatibility problem, where an existing code for
written for re would require getting an exception rather then performing a
valid match (maybe except for some tests?)
Anyway, I guess, the "allowed" feature set for V0 will be a rather "political"
decision, it seems; I for my part am grateful for all of the improvments and am
going to use V1 exclusively, if possible.
vbr
Original comment by Vlastimil.Brom@gmail.com
on 27 Sep 2011 at 6:16
regex 0.1.20110927 now lets you refer to an open group in version 1.
Original comment by re...@mrabarnett.plus.com
on 27 Sep 2011 at 8:02
Original issue reported on code.google.com by
Vlastimil.Brom@gmail.com
on 26 Sep 2011 at 9:19