s/(?<=>) +(?=<)//g; s/(>) +(<)/$1$2/g;
Don't know why I never thought of these...
Thanks for the tip on use warnings
In reply to Re^2: spaces removed in backreference
by Allasso
in thread spaces removed in backreference
by Allasso
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |