Hello Andras,

An archeological dig discovered that on Tuesday, December 4, 2001 at
17:45 GMT +0100, Andras Ledeczi [AL] typed the following:

AL> Ah,  I thought there could be a "universal template" for it, which can
AL> be  modified easily.

Well, you'll see below that it's pretty easy to modify.

AL> "           -*--*- [THEY KEEP YOUR SUBSCRIPTION FREE!] -*--*-"

AL> Without quotes, of course, and there are 11 (if I counted well) spaces
AL> in the beginning of the line. And the second line is:

AL> "                 PUBLISHER and COPYRIGHT INFORMATION"

Try:

,----- [ Begin Regexp ] -----
|
| %SETPATTREGEXP="(?ism)%-
| \s*(-\*--\*- \[THEY KEEP YOUR SUBSCRIPTION FREE!\] -\*--\*-)\s*?\n%-
| (.*?)\n%-
| \s*(PUBLISHER and COPYRIGHT INFORMATION)"%-
| %REGEXPBLINDMATCH="%TEXT"%-
| %SUBPATT="2"
|
`----- [  End Regexp ] -----

The beginning line is between the first set of round brackets and the
second line is between the third set of round brackets.  You can
modify those to suit your needs.  I don't know how familiar you are
with regular expression syntax, so be a little careful about the
characters you use.  Many non-alphanumeric characters have special
meaning, so to use them you'll need to escape them with a "\".  You
can see I did that with the asterisks and square brackets in the first
line.


-- 
Thanks for writing,
 Januk Aggarwal

This page intentionally left unblank.


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

Reply via email to