Re: getting rid of multiple consecutive blanks ?

John Markley <[email protected]> Mon, 26 Oct 2009 18:19:20 -0400
Newsgroups gmane.comp.handhelds.palm.peditors
Message-ID <[email protected]>
Quoting Voytek Eymont <[email protected]>:


> ---
> This is a webpage label:
> this is text that I want
>
> another label:
> more stuff I want
>
> ----
> how do I get rid of one or more words ending in ':' up to an including ':'?

Here is a pScript which will eliminate one entire line of text  
CONTAINING  a colon.  That is, if there is more text on the same line,  
but after the colon, that too will be eliminated.  So

xxxxxxxx:
   and
xxxxxx:yyyyyy

would both be eliminated.  *Any* and *all* lines of text containing a  
colon will go, which you may not want.  I don't think I can do better  
within peditPro, without pToolSet too.  I can try, if this is not ok.   
Let me know.

{ColonDelete::
/&runtimeInit[]
/xEpro f
/xEpro T/xEpro W/xEpro R/xEpro r
:
/xEpro f
/&script$[@@CD2@@]}
{CD2::
/&ifAbort@[$&==0]
/&ifScript@[$&>0,@@CD3@@]}
{CD3::
/xEpro s 1
/&script$[@@CD4@@]}
{CD4::
/&control[@@bLine@@]
/&script$[@@CD5@@]}
{CD5::
/&script$[@@CD6@@]}
{CD6::
/ex
/&script$[@@ColonDelete@@]}

   ~ John


------------------------------------

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/