<?xml version="1.0" encoding="windows-1252"?>
<node id="372064" title="Re: How will my regular expression match?" created="2004-07-06 08:15:39" updated="2005-07-07 14:09:33">
<type id="11">
note</type>
<author id="6762">
dsb</author>
<data>
<field name="doctext">
Hey, [hv]....

&lt;p&gt;
I think this a great short explanation of regex engine expectations.  The only part I might tweak is the part that addresses the mostly greedy nature of the Perl engine.  

&lt;p&gt;
Your explanation &lt;i&gt;is&lt;/i&gt; right on with regards to the way the engine behaves.  You may, however, want to change the term &lt;i&gt;iterations&lt;/i&gt; to something else.  &lt;i&gt;Iterations&lt;/i&gt; usually refers to the repetition of a series of operations.  So, while the process of attempting to match against each character could be called an iteration of the regex engine, the characters could really not.

&lt;p&gt;
I'm not trying to be overly critical or anything.  This tutorial would be great for new (Perl|regex) users to read and i guess I just think the use of &lt;i&gt;iterations&lt;/i&gt; might be a bit confusing to them.


&lt;!-- Node text goes above. Div tags should contain sig only --&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-6762"&gt;
&lt;P&gt;
&lt;HR color="lime"&gt;
&lt;b&gt;dsb&lt;/b&gt;&lt;br&gt;
&lt;font size="-1"&gt;This is &lt;TT&gt;my&lt;/TT&gt; cool &lt;TT&gt;%SIG&lt;/TT&gt;&lt;/font&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
371722</field>
<field name="parent_node">
371722</field>
</data>
</node>
