Variables in expression or conditional regex?
#1
Is it possible to use variables in expressions? e.g.:

PHP Code:
<RegExp input="$$4" output="&lt;entity&gt;&lt;title&gt;\2&lt;/title&gt;&lt;year&gt;\3&lt;/year&gt;&lt;url&gt;http://www.imdb.de/title/\1/&lt;/url&gt;&lt;id&gt;\1&lt;/id&gt;&lt;/entity&gt;" dest="3+">
    <
RegExp input="$$1" output="\1" dest="6">
        <
expression noclean="1">&gt;input id="navbar-query" name="q" type="text" value=".*\(([0-9]+)\)"&lt;</expression>
    </
RegExp>
    <
expression repeat="yes" noclean="1,2">&gt;&lt;a href="/title/([t0-9]*)/[^&gt;]*&gt;([^&lt;]*)&lt;/a&gt; *\(($$6)\)</expression>
</RegExp> 
Here i tried to use $$6 within the expression.

And is it possible to create regex that will only run if a nested regex hits?

I am stuck !
Reply
#2
Ok seens that i already asked the first question a year ago.

And it does work Wink
Reply

Logout Mark Read Team Forum Stats Members Help
Variables in expression or conditional regex?0