New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anchors ^, ^^, $, $$, «, » confused in <?after> #6468
Comments
From xiaowei.lxw@alibaba-inc.com$ perl6 -e 'say "foo".subst(/<?after ^>/, "^").subst(/<?after $>/, "\$")'$foo^ # should be ^foo$ |
From @moritzThis is Rakudo version 2017.08-11-g6cec6b7 built on MoarVM version Rakudo confuses <?after ^> with <?after $> in a regex, and the same with The following four test cases should all pass (barring a thinko on my #!/usr/bin/env perl6 given "abc\ndef" { Kudos go to _cronus on #perl6 for asking about a weird behavior, which Cheers, Moritz Lenz moritz.lenz@noris.de |
From @moritzOh, I forgot to add: it's not specific to S/// or any kind of substitution; the same problem is in normal regex matches; the substitution is just there to illustrate the point a bit better. |
From @moritzTests added to S05-metasyntax/lookaround.t in this commit: Raku/roast@1089a7f9b7 |
From @zoffixznetIRC: https://irclog.perlgeek.de/perl6/2017-09-01#i_15101726 If `^` or `«` is used in `<after>` the match fails: 15:13 ab6tract m: say "What::Root::Thing" ~~ /<?after ^ "What::Root::"> .*/; say "What::Root::Thing" ~~ /<?after "What::Root::"> .*/ 15:23 m: say ".zXXXYzYYY" ~~ /<?after « z> .../ Even though, `<|w>` and `<!|w>` in `<after>` as well as `$` in `<before>` do work: 15:23 m: say ".zXXXYzYYY" ~~ /<?after <|w> z> .../ 15:17 m: say "XXXzYYYz" ~~ /... <before z> / |
From @smlsDuplicate of https://rt-archive.perl.org/perl6/Ticket/Display.html?id=131964 ? |
The RT System itself - Status changed from 'new' to 'open' |
From @usev6This has been fixed with Raku/nqp@075ff765f5 The tests in S05-metasyntax/lookaround.t are passing, so I'm closing this ticket was 'resolved'. |
1 similar comment
From @usev6This has been fixed with Raku/nqp@075ff765f5 The tests in S05-metasyntax/lookaround.t are passing, so I'm closing this ticket was 'resolved'. |
@usev6 - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#131964 (status was 'resolved')
Searchable as RT131964$
The text was updated successfully, but these errors were encountered: