in reply to Re^2: fast greedy regex
in thread fast greedy regex

One unexpected space somewhere in this string and you are toast.

So don't re-invent the (broken) wheel and use a module such as Regexp::Log or Logfile or their derived classes.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law