Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: regex gotcha moving from 5.8.8 to 5.30.0?by choroba (Cardinal) |
on Feb 09, 2021 at 22:44 UTC ( [id://11128157]=note: print w/replies, xml ) | Need Help?? |
I usually use re 'debug'; when debugging regular expressions, but I'm not sure it's helpful in this case. The usual suspects are .* or .*?, because they start by matching the whole string and then backtracking to match less. Can't you replace them with [^;]* or similar?
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|