Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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 ....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: space before and after
by graff (Chancellor) on Sep 03, 2009 at 08:13 UTC | |
|
Re: space before and after
by ikegami (Patriarch) on Sep 03, 2009 at 04:53 UTC | |
by Anonymous Monk on Sep 03, 2009 at 04:58 UTC | |
by ikegami (Patriarch) on Sep 03, 2009 at 05:30 UTC | |
by Anonymous Monk on Sep 03, 2009 at 08:11 UTC | |
by ikegami (Patriarch) on Sep 03, 2009 at 14:23 UTC | |
by Anonymous Monk on Sep 03, 2009 at 08:45 UTC |