ignoremark + ignorecase ignores everything but first letter #5549
If :i and :m are used on the regex, it appears to match the first letter. The returned Match will contains the given string of length that matches the regex:
m: say "All hell is breaking loose" ~~ m:i:m/"All is fine, I am sure of it"/
m: say "Production Ready" ~~ m:i:m/"Pfft, Not Yet"/
On Mon, 08 Aug 2016 17:34:57 -0700, timo wrote:
This has been fixed as of Raku/nqp@18e4093 on nqp, and the regex nodes cleaned up.
With the new nqp::indexicim and eqaticim ops in MoarVM we should have greater maintainability of that code and less difference between the different types of regex, mostly using the same code now.
The rakudo version where I bumped nqp is 2017.05-381-g1ac7996a4
Tests: I have added tests to roast here, Raku/roast@0a80d0d