Hello bats,

on Sun, 28. Mar 2004 at 19:05:28 -0500 rich gregory wrote:

>>>> Can I get it to show this way:
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>> I have always wanted to be somebody, but I see now
>>>> I should have been more specific.
>>>>                                      - Lily Tomlin
>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

DH>> %SETPATTREGEXP='(.*?\n)\n(.*)'%-
DH>> %REGEXPBLINDMATCH=%WRAPPED(%COOKIE="c:\sigs.txt")%-
DH>> %SUBPATT(1)%SUBPATT(2)%-

> WOW! Amazing. (I don't understand ANY of it.)

will explain the new one to you.. :)

> Are you saying that (with the above enhanced sig macro) the line from
> the sigs.txt file that generates the desired result example above need
> only be as follows?
> I have always wanted to be somebody, but I see now I should have been more 
> specific.\n - Lily Tomlin

No, with the above this won't work. But slightly modifying it and
we'll get what you want:
----->8--------------------------------------------------------
%SETPATTREGEXP='(.*?\n)(.*)'%-
%REGEXPBLINDMATCH(%COOKIE="c:\sigs.txt")%-
%WRAPPED(%SUBPATT(1))
                                   %SUBPATT(2)%-
----->8--------------------------------------------------------

This does a regular expression match on the %COOKIE, where the first
pattern (in parenthesis) is everything upto a newline, the second
pattern is the rest.
%REGEXPBLINDMATCH puts these patterns into %SUBPATT.
The output is then the wrapped first part with the indented pattern
that will match the author in your case.

> And thanks again!

no problem, glad I could help.


-- 
shinE!
GnuPG/PGP key: http://thequod.de/danielhahler.asc
lifted with The Bat! 2.05 Beta/12 on Windows XP Service Pack 1.


________________________________________________
Current version is 2.04.7 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to