20 Nov 2019 - TVDB Scraper v3.2.0 is now available which reinstates scraping. TVDB are still in the process of fixing a number of bugs so there may still be further breakages. See this post. 2901570 (post)

Splitting a list by regex
Hi everyone,

Is there a smart way to split a list like that with Regex's?
<dt>Genre</dt><dd>Fantasy | Literature | Drama</dd>

I hoped that combination would do. But the third regex is never triggered, therefore the last part is not extracted.
<RegExp input="$$1" output="\1" dest="11">
<RegExp input="$$11" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">
    <expression repeat="yes" trim="1">(.*?) \| </expression>
<RegExp input="$$11" output="&lt;genre&gt;\1&lt;/genre&gt;" dest="5+">

This list?
Fantasy | Literature | Drama

you should extract text between <dd> and then just split by | to array
Thread Rating:
  • 0 Vote(s) - 0 Average

Logout Mark Read Team Forum Stats Members Help
Splitting a list by regex00