Hello bats,

on Tue, 30. Mar 2004 at 01:30:45 -0500 rich gregory wrote:

DH>> %SETPATTREGEXP='(.*?\n)(.*)'%-
DH>> %REGEXPBLINDMATCH(%COOKIE="c:\sigs.txt")%-
DH>> %WRAPPED(%SUBPATT(1))
DH>>                                    %SUBPATT(2)%-
> It works SOMETIMES!
> Occasionally I get no signature at all with this code. I think the
> failures only occur in single-line entries, those that do not contain
> a \n and citation.

Yeah, of course. Because without a newline it will never match.

Change the Regex pattern as follows:
%SETPATTREGEXP='(.*?)(?:\n)?(.*)'%-

That will make the \n optional and if it gets matched, it won't be
inserted into the %SUBPATT stack, because of the '?:' after the opening
parenthesis.

Hope that will do it.. :)


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