For a multi-line string, simply add \n to the negated character group:
s/(?<=[^"\n])\t(?!"|$)//gm
and of course a /m for the $
In reply to Re^3: Regex for replacing a character "not next to" another character (updated)
by tybalt89
in thread Regex for replacing a character "not next to" another character
by flightdm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |