# New Ticket Created by Moritz Lenz # Please include the string: [perl #76792] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=76792 >
09:07 <@szabgab> rakudo: say "a b,c,d" ~~ rule { a \w ** [\,] } 09:07 <+p6eval> rakudo 9fd5ea: OUTPUT«a b?» 09:08 <@szabgab> can anyone help me to understand why this does not match the whole string? 09:08 < moritz_> rakudo: say "a b,c,d" ~~ rule { a \w**[\,] } 09:08 <+p6eval> rakudo 9fd5ea: OUTPUT«a b?» 09:08 < moritz_> rakudo: say "a b,c,d" ~~ rule { a \w**\, } 09:08 < sorear> [\,] seems very contrived 09:08 <+p6eval> rakudo 9fd5ea: OUTPUT«a b?» 09:09 < moritz_> sorear: still it should work, no? 09:09 < sorear> should 09:09 <@szabgab> oh, right I don't need the [] at the end 09:10 < moritz_> rakudo: say "a b,c,d" ~~ rule { a \w[\,\w]* } 09:10 <+p6eval> rakudo 9fd5ea: OUTPUT«a b,c,d?» 09:12 < moritz_> rakudo: say "a b,c,d" ~~ token { a <.ws> \w ** \, } 09:12 <@szabgab> moritz_: yes, that's a workaround :) 09:12 <@szabgab> thanks 09:12 <+p6eval> rakudo 9fd5ea: OUTPUT«a b?» I kinda expect \w ** \, to match 'b,c,d', and the last evalbot line shows that it's not a problem with whitespaces.