<?xml version="1.0" encoding="windows-1252"?>
<node id="991062" title="how to to find the &quot;/&quot; in a string" created="2012-08-31 14:11:23" updated="2012-08-31 14:11:23">
<type id="115">
perlquestion</type>
<author id="979909">
robertw</author>
<data>
<field name="doctext">
&lt;p&gt; I want to recognize the pattern after the "while" but because the "/" is used to open and close the string to be searched for I have no idea how to make the program count how many times "&lt;c&gt;aug&lt;/td&gt;&lt;/c&gt;" is in the string.
Thank you so much in advance.
&lt;/p&gt;
&lt;code&gt;
$html = get("http://www.iex.nl/Aandeel-Koers/11773/$aandeel/historische-koersen.aspx?maand=0") 
or die "could not get http://www.iex.nl/Aandeel-Koers/11773/@_/historische-koersen.aspx"; 
while ($html =~ /aug&lt;/td&gt;/g) { $count++ }
print $count;
&lt;/code&gt;</field>
</data>
</node>
