<?xml version="1.0" encoding="windows-1252"?>
<node id="127652" title="Re: Common Regex Gotchas" created="2001-11-26 22:23:32" updated="2005-07-19 14:08:11">
<type id="11">
note</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
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. 

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?

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?

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">
9096</field>
<field name="reputation">
8</field>
</data>
</node>
