Hi Thomas,

@2-Nov-2003, 16:56 +0100 (02-Nov 15:56 UK time) Thomas Woelk said to
Marck:

>> The quickest v2 conversion method is to stick an underscore into all
>> %COMMENT macro references like this: %_COMMENT.

> I tested the following QT (with %_COMMENT):

> =====[Begin DelLS]=====
> %_COMMENT="%Text"%-
> %Quotes='%QInclude="DelLS2"'%-
> %_COMMENT=""
> =====[ End  DelLS]=====

That's fine. The problem is here:

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

This is the problem. '_' has been used as a delimiter and should be
changed to something else - say '`'

Make the 3 lines above into:

%_COMMENT=`%SETPATTREGEXP="%-
(?is-m)^(\w{0,3}(\>[^\S\n]*?)+[^\S\n])?[^\S\n]*(.*?)(\n((.*\n)*)\z|\z)"%-
%-%-%-%-%-%REGEXPBLINDMATCH="%_COMMENT"%-
%-%-%-%-%-%SUBPATT="5"`%-

That should help TB's indigestion. This is all untested - sorry to
guinea pig you like this.

-- 
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v2.01.20 on Windows XP 5.1.2600 Service Pack 1
'
________________________________________________________

http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to