Subject:
|
Re: Strip surplus white space with Perl
|
Newsgroups:
|
lugnet.off-topic.geek
|
Date:
|
Sun, 29 Oct 2000 21:39:04 GMT
|
Viewed:
|
122 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
In lugnet.off-topic.geek, Todd Lehman writes:
> $string =~ s/([\009\040\015\012])\1+/$1/g;
s/009/011/
oops :)
--Todd
|
|
Message is in Reply To:
![](/news/x.gif) | | Re: Strip surplus white space with Perl
|
| (...) Ahh, but that *is* what he asked for. Fredrik said, "If two consecutive characters are <SPACE> and <RET>, for example, it doesn't matter to me which one is preserved and which one is chopped off." (...) My goodness. I suppose you could do it (...) (24 years ago, 29-Oct-00, to lugnet.off-topic.geek)
|
10 Messages in This Thread: ![Strip surplus white space with Perl -Fredrik Glöckner (29-Oct-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/246.gif) ![Re: Strip surplus white space with Perl -Christopher Lindsey (29-Oct-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![Re: Strip surplus white space with Perl -David Eaton (29-Oct-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![Re: Strip surplus white space with Perl -Christopher Lindsey (29-Oct-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![Re: Strip surplus white space with Perl -Christopher Lindsey (29-Oct-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![Re: Strip surplus white space with Perl -Todd Lehman (29-Oct-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/246.gif) ![You are here](/news/here.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Strip surplus white space with Perl -Christopher Lindsey (29-Oct-00 to lugnet.off-topic.geek)](/news/x.gif) ![](/news/46.gif) ![Re: Strip surplus white space with Perl -Dan Boger (29-Oct-00 to lugnet.off-topic.geek)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: Strip surplus white space with Perl -Todd Lehman (29-Oct-00 to lugnet.off-topic.geek)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|