CC: | gdm [...] savesources.com |
Subject: | Incorrect regular expression |
Hello,
I've found regular expression that seems to be incorrect in file Tools/
BPLite/Iteration.pm using Google code search
Line 248 is the following
if ($_ =~ /(\w\w|.*|\w+.*)\s\s+(\d+)\s+([-\.e\d]+)$/) {
but \w+.* cannot be cached after .*
So, I propose the following variant which is equivalent of yours, but a
bit simpler:
if ($_ =~ /(\w\w|.*)\s\s+(\d+)\s+([-\.e\d]+)$/) {
Kind regards,
Dmytro Gorbunov
Leader of http://savesources.com project