![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Re: Re: TIMTOWTDIby rkg (Hermit) |
on Sep 11, 2003 at 10:38 UTC ( #290635=note: print w/replies, xml ) | Need Help?? |
Thanks for the $text =~ s/\[[^\]]*\]/ /g; tip; that is better. As for the /m
on these I think I'd put the /m on the third RE so taken together the triple REs mean: "remove leading whitespace, trailing whitespace, and make all interior whitespace (even across line breaks) into single spaces". Many thanks for the OT-but-useful teaching!
In Section
Seekers of Perl Wisdom
|
|