Hi Hans,<div><br></div><div>My purpose here is to test if one can use TextExtract in place of conventional Include with something like </div><div>(:pagelist .* regex=1 fmt=extract page=*.*#section#sectionend :)</div><div><br>
</div><div>On some pages I have an anchored todo section enclosed like this :</div><div><br></div><div>[[#afaire]</div><div>*one</div><div>*two</div><div>[[#finafaire]]</div><div><div><br></div></div><div>Then, I would like to use TextExtract new capabilities to extract all text enclosed between the anchors [[#afaire]] &amp; [[#finafaire]].</div>
<div>Here there are my tests and my trouble : </div><div><br></div><div><div>(:pagelist vérifier fmt=extract page=Argot.*#afaire#finafaire name=-Afaire count=10:)</div><div>result : I got the lines where there is the word /vérifier/ in pages from goup Argot, source limited to the section, nice.</div>
<div>But as I need everything is enclosed between anchors, I will use regex option and /.*/ as searched pattern. I wish I&#39;m right. </div><div><br></div><div>(:pagelist .* regex=1 fmt=extract page=Argot.*#afaire#finafaire name=-Afaire count=10:)</div>
<div>Here is the trouble (see next test for comparing), result : Found no matches!</div><div><font class="Apple-style-span" color="#FF0000" face="Georgia, &#39;Times New Roman&#39;, Times, serif" size="4"><span class="Apple-style-span" style="font-size: 15px; line-height: 19px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><br>
</span></font></div><div>(:pagelist .* regex=1 fmt=extract page=Argot.* name=-Afaire count=10:)</div><div>Works : give me all text from 10 pages.</div><div><br></div><div>So : if I use regex=1 and limited search in anchored sections, there is a problem that disappear if I don&#39;t use anchored sections.</div>
<div><br></div><div>Test can be seen there : <a href="http://www.languefrancaise.net/docs/Test/TextExtract">http://www.languefrancaise.net/docs/Test/TextExtract</a></div><div>(visible password)</div></div><div><br></div><div>
Thank you for your interest,</div><div>Gilles.<br><br><div class="gmail_quote">2009/9/28 Hans <span dir="ltr">&lt;<a href="mailto:design5@softflow.co.uk">design5@softflow.co.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Monday, September 28, 2009, 12:06:36 AM, Hans wrote:<br>
<br>
&gt; And I need to think about point 2. if it is right to allow rows<br>
&gt; which have no matches, because they have been removed in the process.<br>
<br>
</div>Now available in latest release version 2009-09-28<br>
<br>
If snip=&#39;pattern&#39; removes the match in a row, the row will still be<br>
passed as result output, and the match count will be tasaken from the<br>
row before the snipping, so you get a positive result number,<br>
even though no match is highlighted (because snip=&#39;pattern&#39; removed it).<br>
usefult to get text extract by looking for keywords/markers in the<br>
text without showing these for instance.<br>
<div><div></div><div class="h5"><br>
<br>
  ~Hans<br>
<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>---------------------------------------<br>| A | de la langue française<br>| B | <a href="http://www.languefrancaise.net/">http://www.languefrancaise.net/</a><br>
| C | <a href="mailto:languefrancaise@gmail.com">languefrancaise@gmail.com</a><br>---------------------------------------<br>
</div>