Using Variables in Regular Expressions
#1
I just started writing a scraper and was wondering if i can use the $$ variables in a regular expression. I couldn't find any informations in the forums or wikis.

Martin
Reply
#2
If you mean something like this

Code:
<RegExp input="$$1" output="\1" dest="5">
  <expression clear="yes" noclean="1">(?i)(&lt;episode id=&quot;$$3&quot;.*?&lt;/episode&gt;)</expression>
</RegExp>

then yes
Reply
#3
Thanks!

I tried that but thought it did not work. Is it possible to output the regex to the xbmc.log file before it gets executed?
Reply

Logout Mark Read Team Forum Stats Members Help
Using Variables in Regular Expressions0