<?xml version="1.0" encoding="windows-1252"?>
<node id="127656" title="Re: Re: Common Regex Gotchas" created="2001-11-26 22:36:03" updated="2005-07-19 14:08:11">
<type id="11">
note</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
Sorry - re-reading it, I realized that I accidently inserted html tags that are not showing up.
&lt;p&gt;
I found the Greedy section to be quite confusing. First of all, I think you probably have a couple slash-s'es in your html that is causing it to not print and makes the last couple paragraphs very difficult to understand and read.
&lt;p&gt;
Also, I'm still confused about why there is a match at all in the first example. Why doesn't the engine continue backwards past the whitespace and look for a &lt;\/tag&gt; string? 
&lt;p&gt;
Finally, why does the last example (still in the Greedy section) work? If, when creating the example string, I carraige return after the &lt;\/tag&gt;, there shouldn't be a whitespace to match on, right? 
&lt;p&gt;
Finally, finally, thanks for putting this together... it's really speeding my ramp along...</field>
<field name="root_node">
9096</field>
<field name="parent_node">
127652</field>
<field name="reputation">
10</field>
</data>
</node>
