Re: getting rid of multiple consecutive blanks ?

John Markley <[email protected]> Thu, 29 Oct 2009 10:03:49 -0400
Newsgroups gmane.comp.handhelds.palm.peditors
Message-ID <[email protected]>
Well, don't know why it took me so long - it suddenly occurred to me  
how to get the LFdelete to run as a REGEXP find.  It's along the lines  
of using the visibilator, but without the visibilator.  Essentially a  
find/replace of all LineFeeds with a highASCII character, §, then a  
REGEXP find/replace of two-or-more, §§*, with one LF, /p10.  It works.  
  I have emailed you your sample memo on which I have run the new  
LFdeleteREGEXP, then ColonDelete (the new one), then SPdelete.


{LFdelete REGEXP::
/&runtimeInit[]
/xEpro f
/xEpro T/xEpro W/xEpro R/xEpro r
/p10/p1
/xEpro f
/&script$[@@LFR0@@]}
{LFR0::
/&ifAbort@[$&==0]
/&ifScript@[$&>0,@@LFR1@@]}
{LFR1::
/xEpro f
/xEpro T/xEpro W/xEpro R/xEpro r
/p10
/&script$[@@LFR2@@]}
{LFR2::
/&tap i[080,080]
/&script$[@@LFR3@@]}
{LFR3:: ß
/xEpro f
/&script$[@@LFR4@@]}
{LFR4:: A
/&script$[@@LFR5@@]}
{LFR5:: d
/&script$[@@LFR6@@] }
{LFR6::
/xEpro f
/xEpro T/xEpro W/xEpro R
ßß*
/&script$[@@LFR7@@]}
{LFR7::
/&tap i[080,080]
/&script$[@@LFR8@@]}
{LFR8::
/p10
/xEpro f
/&script$[@@LFR9@@]}
{LFR9::
/&ifAbort@[$&==0]
/&ifScript@[$&>0,@@LFR10@@] }
{LFR10::A
/&script$[@@LFR11@@]}
{LFR11:: d}


   ~ 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/