Current behaviour:

> say so "abc" ~~ /a ~ (c) (b)/; say $0, $1
True
「b」
「c」

As I understand S05 the ~ operator basically rewrites the above regex to /a (b) 
(c)/ and only then matching and capturing happens.

So the question seems to be, whether numbering of subpatterns should be done 
before the regex is rewritten or afterwards. Rakudo seems to do the latter 
while it should be the former. (Please correct me if that's not the point. I'm 
trying to rephrase the bug report to avoid any confusion.)

Reply via email to