<?xml version="1.0" encoding="windows-1252"?>
<node id="23321" title="RE: RE: Quantifiers in regular expressions" created="2000-07-20 00:19:16" updated="2005-07-28 20:13:03">
<type id="11">
note</type>
<author id="23024">
pkn</author>
<data>
<field name="doctext">
I don't understand this:

$string = "&lt;foo&gt;...&lt;/foo&gt;&lt;bar&gt;...&lt;/bar&gt;";

  # This matches &lt;foo&gt;&lt;/bar&gt;, not what we want.
  $string =~ /\&lt;.*\&gt;(.*)\&lt;/.*\&gt;/;

How does it match?  And I thought that the matching operator was m//, not m///.  What does m/// do?

</field>
<field name="root_node">
967</field>
<field name="parent_node">
8619</field>
</data>
</node>
