softpano / pythonizer

Translator (or more correctly transcriber) from Perl to Python
http://www.softpanorama.org/Scripting/Pythonorama/Python_for_perl_programmers/Pythonizer/index.shtml
Other
39 stars 17 forks source link

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

Open snoopyjc opened 2 years ago

snoopyjc commented 2 years ago

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 commented 2 years ago

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