-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Brano,

@30 April 2002, 20:05:00 +0200 (19:05 UK time) Brano wrote in
[EMAIL PROTECTED]">mid:[EMAIL PROTECTED]

> I have to delete these lines, exist something to automate that ?

> for deleting end I use:

> ===
> %quotes='%SETPATTREGEXP="(.*)\n\n---|(.*)\n- --|(.*)"%-
> %REGEXPBLINDMATCH="%text"%-
> %SUBPATT="1" %SUBPATT="2" %SUBPATT="3"'
> ===

> but i need remove some lines from beggining. how to do it in 1 macro ?
> (I have extracted text thru regexp, that's ok. But how to process
> this text further ?) I tried something like this, but it doesn't work:

> %quotes=''%SETPATTREGEXP="(.*)\n\n---|(.*)\n- --|(.*)"%-
> %REGEXPBLINDMATCH="%text"%-
> %SETPATTREGEXP="(.*)"%-
> %REGEXPBLINDMATCH="%SUBPATT='1' %SUBPATT='2' %SUBPATT='3'"
> %SUBPATT="1"''

> -this is just try, how to work with regexp(regexp(text))

This looks like a "Remove PGP signatures" macro. Here's a generic
"quotes" macro that I use. It removes all common prefixes and
delimiters:

%quotes='%SETPATTREGEXP="(?is)((\s*)?%-
\n?-----BEGIN PGP SIGNED.*?\n%-
(Hash:.*?\n)?\s*)?(.*?)%-
(\n(%-
_{40,}\s*\n|%-
(-\s)?--\s?\n|%-
- -----BEGIN PGP SIGNATURE.*\s?\n|%-
- -+Original Message-+\n|%-
\n-+ Yahoo Groups.*~--\>)|%-
\n+Get your FREE download|%-
\z)"%REGEXPBLINDMATCH="%text"%SUBPATT="4"'

This one has been slightly "suped" up from the one on the FAQ essay on
macros (or is it in the templates essay?).

- --
Cheers -- .\\arck D. Pearlstone -- List moderator
SB! v1.60d/iKey1000-5523848F0B1 on Windows 2000 5.0.2195 Service Pack 2
�
-----BEGIN PGP SIGNATURE-----

iD8DBQE8zuC/OeQkq5KdzaARAourAKDUcHNAdpHbR98TGTkFfyHNpX1spACfcqlz
KMKI/mFf+6RLNF3vxAcjdW4=
=5WHO
-----END PGP SIGNATURE-----



______________________________________________________
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to