Re: Lookbehind assertion weirdness

2019-08-23 Thread Brad Gilbert
`after` and `before` can be confusing, but I think it would be more confusing if it were the other way around. On Fri, Aug 23, 2019 at 2:15 PM Sean McAfee wrote: > On Thu, Aug 22, 2019 at 6:11 PM yary wrote: > >> Perl 6 is doing the right thing. The dot matches any character. In >> this case, m

Re: Lookbehind assertion weirdness

2019-08-23 Thread Sean McAfee
On Thu, Aug 22, 2019 at 6:11 PM yary wrote: > Perl 6 is doing the right thing. The dot matches any character. In > this case, matching the final ':'. The next bit of the regex says the > cursor has to be after 1:, and indeed, after matching the ':' the > cursor is after '1:', so the substitution