Re: getting rid of multiple consecutive blanks ?
[email protected] Sun, 25 Oct 2009 07:40:15 -0400
| Newsgroups | gmane.comp.handhelds.palm.peditors |
|---|---|
| Message-ID | <[email protected]> |
Hi Voytek:
On Sat, Oct 24, 2009 at 05:42:44PM +1100, Voytek Eymont wrote:
> I sometimes need to grab stuff from a web page, end up with lots of bamf as
> well as lots of blank spaces/lines what the way to get rid of multiple
> consecutive ' ' from the pasted text ?
JohnM will help you (of course). He knows more than I (I am serious).
However, this is a typical case that has a trivial solution in emacs (linux
and such); google "emacs fill".
Coming back to the palm...
E.g., in pSearchTool, using REGEXP, substituting " *" (2 spaces star) by " "
(1 space) gets rid of multiple spaces. Same with tabs. Getting rid of blank
lines is doable too but is trickier. You need pedit for it and the show
invisibles thingie. Make backups first.
More advanced REGEXP users could do it with simpler commands.
If you get no solution from JohnM or others, tehn I'll explain the details.
Good luck, Paul
------------------------------------
Latest pedit/pToolSet/LapTopHack at http://www.osuweb.net/~pc/pca/pc_all.zip
pedit/pToolSet/LapTopHack scripting info/resources at http://www.peditors.com
Peditors Forum http://groups.yahoo.com/group/peditors
Unsubscribe by writing to peditors-unsubscribe-hHKSG33Tihh4sT85+ipIM4ckdKdSAMto@public.gmane.org! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/peditors/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/peditors/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/