Learn to regex on kodi
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Using the "&" code

Go down

Using the "&" code  Empty Using the "&" code

Post  Admin Fri Apr 15, 2016 1:39 pm

Hello Everyone

How to add & to a regex code in html:

<item>
<title>Test</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param2]</title>
<link>$doregex[makelist2]</link>
<thumbnail>NA</thumbnail>
]]></listrepeat>
<expres>&lt;/li&gt;\n.*\n.*?"(.*?)"</expres>
<page>Link removed to avoid rule breaking</page>
<setcookie>lng=en</setcookie>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[makelist2.param2] - [makelist2.param3]</title>
<link>Link removed to avoid rule breaking</link>
<thumbnail>NA</thumbnail>
]]></listrepeat>
<expres>file: (.*?)"</expres>
<page>Link removed to avoid rule breaking=$doregex[id]$doregex[link1]lng=en$doregex[link1]</page>
<referer>Link removed to avoid rule breaking</referer>
<cookieJar></cookieJar>
</regex>
<regex>
<name>id</name>
<expres>value="(.*?)"<expres>
<page>Link removed to avoid rule breaking</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>vid</name>
<expres>src:"(.*?)"<expres>
<page>Link removed to avoid rule breaking[makelist2.param1]$doregex[link1]</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>link1</name>
<expres>b="(.*?)"</expres>
<page>Link removed to avoid rule breaking</page>
<thumbnail>[makelist.param3]</thumbnail>
</regex>
</item>

Because the html file won't read the &amp; I had to add the link1 regex code and call the symbol from a txt file using this code <b="&"> placed within the text file.

Good luck
D

Admin
Admin

Posts : 3
Join date : 2016-04-15

https://dlstv-learning-regex.board-directory.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum