![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
taking white space out between closing and opening tagsby chuleto1 (Beadle) |
on Aug 21, 2002 at 20:41 UTC ( #191864=perlquestion: print w/replies, xml ) | Need Help?? |
chuleto1 has asked for the wisdom of the Perl Monks concerning the following question:
Problem: I would like to delete all tab space "\t" new lines "\n " and more than one continuos space " " inside opening and closing tags and replacing them with ONE space per instance. $text = "<tag> The purpose of the applicant rating session is for you, the applicant, to provide a sample of your effective teaching skills.</tag>" The desired result would be: $text = "<tag>The purpose of the applicant rating session is for you, the applicant, to provide a sample of your effective teaching skills.</tag>"
Back to
Seekers of Perl Wisdom
|
|