Re: removing stuff between '<' and '>' ?
John Markley <[email protected]> Wed, 29 Jun 2011 08:11:01 -0400
| Newsgroups | gmane.comp.handhelds.palm.peditors |
|---|---|
| Message-ID | <[email protected]> |
Voytek -
Here is a shorter and much more elegant way to get the same result.
I think it is better than the first one. It will only run in an
active text field. It will run in a text field that does not have
both < and > bracketing some text but will not do anything to the text
at all. When <text> is present it will remove it.
{remove < >::
/&ifAbort@[$^==0]
/&script$[@@rem< >2@@]}
{rem< >2::
/&specAct[8] <
/xEpst I
/xEpst S
/xEpst W
/xEpst f
/xEpst d
/0x1C
/&script$[@@rem< >3@@]}
{rem< >3::
/!/$c/&varSet@[$4,$$]
/&script$[@@rem< >4@@]}
{rem< >4::
/&specAct[8] >
/xEpst f
/xEpst d
/0x1D
/&script$[@@rem< >5@@]}
{rem< >5::
/!/$c
/&varSet@[$5,$$]
/&varAdd@[$5,-$4]
/&varSubStr@[$B,$^,$4,$5]
/&clipAdd i[$B]
/&script$[@@rem< >6@@]}
{rem< >6::
/&specAct[8]
/&script$[@@rem< >7@@]}
{rem< >7::
/ep
/xEpst f
/xEpst d
/0x08
/&mess[@@DONE@@,,150]}
regards,
~ 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:
[email protected]
[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/