How to remove the space between and after tags. Where the output is#!/usr/bin/perl while(<DATA>){ s/\s(?=(<.+>|<.+\/>|<\/.+>))//g; print $_; } __DATA__ '' <p> Though Memphis <span> </span> fans may be Rodgers problem +s. </p><br/> Many ....
''<p>Though Memphis <span></span>fans may be Rodgers problems.</p><br/ +>Many ....
In reply to space before and after by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |