in reply to REGEX Frustration
_____________________ date / ______________ desc / / _______ amount / / / ------ ------ ------ /^[^\t]*\t[^\t]*\t[^\n*]\n\z/
You want to remove the amount, so
s/^[^\t]*\t[^\t]*\t\K[^\n*]//; # 5.10+ s/^([^\t]*\t[^\t]*\t)[^\n*]/$1/; # Any version
|
|---|