_____________________ 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
In reply to Re: REGEX Frustration
by ikegami
in thread REGEX Frustration
by RobertJ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |