RegExp conditional option help
#1
Hi

I'd like to know if is is possible to test 2 booleans in a conditional statement ..

for example :

Code:
<RegExp conditional="testA & !testB">
</Regexp>

That would be nice Wink

I can't find help on this anywhere ... or ... i didn't search thoroughly Wink
Reply
#2
well, no. i didn't add boolean expression parsing as this is easily done elsewise.

<regexp conditional="testA" blabla dest="5">
<expression>somestuff</expression>
</regexp>
<regexp conditional="!testB" input="$$5" output="\1" dest="4">
<expression>(.+)</expression>
</regexp>

see, if either arent fulfilled no joy in buffer 4
Reply
#3
hehe actually, while asking I tried something which looks like what you showed :
Code:
<RegExp conditional="!testA">
    <RegExp conditional="testB" input="$$1" output="(...)" dest="4">
        <expression repeat="yes">(...)</expression>
    </RegExp>
            
    <RegExp conditional="!testB" input="$$1" output="(...)" dest="4">
        <expression repeat="yes">(...)</expression>
    </RegExp>
</RegExp>

<RegExp conditional="testA" input="$$1" output="(...)" dest="4">
    <expression repeat="yes">(...)</expression>
</RegExp>

And this seems to fit nicely my need ...

Anyway, thanks !
Reply



Logout Mark Read Team Forum Stats Members Help
RegExp conditional option help0
This forum uses Lukasz Tkacz MyBB addons.