pythonizer icon indicating copy to clipboard operation
pythonizer copied to clipboard

The m flag on regex gets treated as the start of a new regex

Open snoopyjc opened this issue 3 years ago • 1 comments

The m flag on regex gets treated as the start of a new regex. For example;

 my @lines = split(/^/m, $expr);

gets parsed as a /^/ regex, followed by a m, ..... regex (and the next comma is many lines away!)

snoopyjc avatar Feb 19 '22 03:02 snoopyjc

Fixed in my v0.955 https://github.com/snoopyjc/pythonizer/

snoopyjc avatar Mar 31 '22 22:03 snoopyjc