<?xml version="1.0" encoding="windows-1252"?>
<node id="225214" title="Re^3: Applying regexes to streams: Perl enhancement idea" created="2003-01-08 03:15:00" updated="2005-08-13 09:28:37">
<type id="11">
note</type>
<author id="114691">
Aristotle</author>
<data>
<field name="doctext">
How would I go about telling &lt;tt&gt;/z&lt;/tt&gt; to wrap it up and accept the end of string as end of match? There are really two things you are asking of the engine: to continue where it left off last time, and to fail without forgetting where it's at when it hits the end of string. You need a way to be able to ask for the first without the latter. Otherwise, as a silly example (but let's pretend it isn't), &lt;tt&gt;/.+/z&lt;/tt&gt; would always fail, even at the end of my input stream where I'd want it to successfully match at end of string.

&lt;p align="right"&gt;&lt;em&gt;Makeshifts last the longest.&lt;/em&gt;&lt;/p&gt;</field>
<field name="root_node">
225083</field>
<field name="parent_node">
225110</field>
</data>
</node>
