Hello Ravi,

Saturday, September 21, 2002 at 19:57 GMT +0100, was when inspiration
required Ravi [R] to write:

R> It seems to me that it should be:
R> %REGEXPMATCH="%COMMENT"'<>'':'%-
R>                           ^

Yes, but the version you have in your last message has this written
correctly. So that doesn't appear to explain your problem.

Here is the version of wrap2 which I use and which does work in my
tests.  Note the expressions are a little different than my original
one that you posted, but that shouldn't change the freezing behaviour
you're seeing.  The only other thing to be careful of is that you're
not just giving up too soon.  These recursive templates can have a
significant delay if they're working on a particularly large amount of
text.

=====[Begin wrap2]=====
%IF:'%-
%SETPATTREGEXP="(?is-m)[^\n]+"%-
%REGEXPMATCH="%COMMENT"'<>'':'%-
%-
%WRAPPED=_%SETPATTREGEXP="(?is-m)^(.*?)(\n(((\w{0,5}(\>\s*)+)?\s*\n))+(.*)\s*$|\z)"%-
%-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%-
%-%-%-%-%-%SUBPATT="1"_

%COMMENT=_%SETPATTREGEXP="(?is-m)^(.*?)(\n(((\w{0,5}(\>\s*)+)?\s*\n))+(.*)\s*$|\z)"%-
%-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%-
%-%-%-%-%-%SUBPATT="7"_%-
%QINCLUDE="wrap2"'
=====[ End  wrap2]=====

-- 
Thanks for writing,
 Januk Aggarwal

With these words, this page is no longer blank but is complete.


________________________________________________________
 Current version is 1.61 | "Using TBTECH" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to