2011-03-27, 22:12
Is it possible to use variables in expressions? e.g.:
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 !
PHP Code:
<RegExp input="$$4" output="<entity><title>\2</title><year>\3</year><url>http://www.imdb.de/title/\1/</url><id>\1</id></entity>" dest="3+">
<RegExp input="$$1" output="\1" dest="6">
<expression noclean="1">>input id="navbar-query" name="q" type="text" value=".*\(([0-9]+)\)"<</expression>
</RegExp>
<expression repeat="yes" noclean="1,2">><a href="/title/([t0-9]*)/[^>]*>([^<]*)</a> *\(($$6)\)</expression>
</RegExp>
And is it possible to create regex that will only run if a nested regex hits?
I am stuck !