in reply to Reg the split expression

try /transaction (\d+).*user:\s*(\S+)\s*(?:#\s*(.*))/g (untested), note that $3 will be undef and you may have to write $3//'' later to avoid warnings about that.

Replies are listed 'Best First'.
Re^2: Reg the split expression
by Anonymous Monk on Aug 04, 2014 at 21:01 UTC
    typo! /transaction (\d+).*user:\s*(\S+)\s*(?:#\s*(.*))?/g (missing ? at the end)