<?xml version="1.0" encoding="windows-1252"?>
<node id="976821" title="Re^2: Text matching repost" created="2012-06-18 08:19:27" updated="2012-06-18 08:19:27">
<type id="11">
note</type>
<author id="806480">
Neighbour</author>
<data>
<field name="doctext">
I later realised that instead of using
&lt;c&gt;
if (/$start/ or /$stop/) { print; }
&lt;/c&gt;
I could just as well use (and more efficient too):
&lt;c&gt;
if ($&amp;) { print; }
&lt;/c&gt;
The meaning of &lt;c&gt;$&amp;&lt;/c&gt; is explained in [doc://perlvar] as &lt;blockquote&gt;The string matched by the last successful pattern match.&lt;/blockquote&gt;You can also use &lt;c&gt;$MATCH&lt;/c&gt; if you &lt;c&gt;use English;&lt;/c&gt;</field>
<field name="root_node">
976789</field>
<field name="parent_node">
976798</field>
</data>
</node>
