# New Ticket Created by Dan Zwell # Please include the string: [perl #132066] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=132066 >
`|` matches the longest input: > 'ab' ~~ / ^:ratchet [ . | .. ] $ / 「ab」 If the regex contains empty code blocks, backtracking fails: > 'ab' ~~ / ^:ratchet [ {}. | {}.. ] $ / Nil However, if the search order is reversed so backtracking isn't required, the match succeeds: > 'ab' ~~ / ^:ratchet [ {}.. | {}. ] $ / 「ab」 I'm using Rakudo version 2017.08-96-ge5a600997 built on MoarVM version 2017.08.1-135-ge86428d4