Normal
The Regex Tutorial - The Question Mark Makes the Preceding Token Optional site is very useful. If I am not mistaken, the site's link is in the wiki also where you talk about the z-tag.Lets say I have the following 2 pages:HBO South Asia | Hollow Man 2. The HTML containing the information is[CODE]</ul></div><dl class="info"> <dt>Starring</dt> <dd>Christian Slater, Peter Facinelli, Laura Regan</dd> <dt>Genre</dt> <dd>Action, Adventure</dd> <dt>Duration</dt> <dd>1 hr 22 min</dd></dl></div><div class="synopsis"> <p>some description.</p></div><div class="legal">[/CODE]andHBO South Asia | Single White Female. The HTML containing the information is[CODE]</ul></div><dl class="info"> <dt>Starring</dt> <dd>Jennifer Jason Leigh, Bridget Fonda, Steven Weber</dd> <dt>Directed</dt> <dd>Barbet Schroeder</dd> <dt>Genre</dt> <dd>Suspense, Thriller</dd> <dt>Duration</dt> <dd>1 hr 35 min</dd></dl></div><div class="synopsis"> <p>some description</p></div><div class="legal">[/CODE]My grabber template is[CODE]<Template name="Details" start="Add to MyHBO</a></li>" end="<div class="legal">"> <SectionTemplate tags="UDP"> <TemplateText> </ul> </div> <dl class="info"> <z(><dt><*MATCH></dt> <dd><*VALUE></dd></z)?> <z(><dt><*MATCH></dt> <dd><*VALUE></dd></z)?> <dt><*MATCH></dt> <dd><*VALUE></dd> <dt><*MATCH></dt> <dd><*VALUE></dd> </dl> </div> <div class="<*MATCH>"> <p><*VALUE></p> </div> </TemplateText> <MatchList> <Match field="#ACTORS" match="Starring" /> <Match field="#DIRECTOR" match="Directed" /> <Match field="#GENRE" match="Genre" /> <Match field="#DURATION" match="Duration" /> <Match field="#DESCRIPTION" match="synopsis" /> </MatchList> </SectionTemplate></Template>[/CODE]As far as I can tell, the page tagMap has 1 match with the template tagMap, but I get wierd behavior with the #DESCRIPTION token. If there is a match with 1 of the z-tags, #DESCRIPTION is ok. But if there are no matches with either of the z-tags, #DESCRIPTION is blank. I have tried debugging it but got the sqlite.dll error again even though sqlite.dll is in the proper folder (...mediaportal\WebEPG\WebEPG-xmltv\bin\Debug).
The Regex Tutorial - The Question Mark Makes the Preceding Token Optional site is very useful. If I am not mistaken, the site's link is in the wiki also where you talk about the z-tag.
Lets say I have the following 2 pages:
HBO South Asia | Hollow Man 2. The HTML containing the information is
[CODE]</ul>
</div>
<dl class="info">
<dt>Starring</dt>
<dd>Christian Slater, Peter Facinelli, Laura Regan</dd>
<dt>Genre</dt>
<dd>Action, Adventure</dd>
<dt>Duration</dt>
<dd>1 hr 22 min</dd>
</dl>
<div class="synopsis">
<p>some description.</p>
<div class="legal">[/CODE]
and
HBO South Asia | Single White Female. The HTML containing the information is
<dd>Jennifer Jason Leigh, Bridget Fonda, Steven Weber</dd>
<dt>Directed</dt>
<dd>Barbet Schroeder</dd>
<dd>Suspense, Thriller</dd>
<dd>1 hr 35 min</dd>
<p>some description</p>
<div class="legal">
[/CODE]
My grabber template is
[CODE]<Template name="Details" start="Add to MyHBO</a></li>" end="<div class="legal">">
<SectionTemplate tags="UDP">
<TemplateText>
</ul>
<z(><dt><*MATCH></dt>
<dd><*VALUE></dd></z)?>
<dt><*MATCH></dt>
<dd><*VALUE></dd>
<div class="<*MATCH>">
<p><*VALUE></p>
</TemplateText>
<MatchList>
<Match field="#ACTORS" match="Starring" />
<Match field="#DIRECTOR" match="Directed" />
<Match field="#GENRE" match="Genre" />
<Match field="#DURATION" match="Duration" />
<Match field="#DESCRIPTION" match="synopsis" />
</MatchList>
</SectionTemplate>
</Template>
As far as I can tell, the page tagMap has 1 match with the template tagMap, but I get wierd behavior with the #DESCRIPTION token. If there is a match with 1 of the z-tags, #DESCRIPTION is ok. But if there are no matches with either of the z-tags, #DESCRIPTION is blank. I have tried debugging it but got the sqlite.dll error again even though sqlite.dll is in the proper folder (...mediaportal\WebEPG\WebEPG-xmltv\bin\Debug).