<?xml version="1.0" encoding="windows-1252"?>
<node id="29601" title="How can a regex match every occurence of a string?" created="2000-08-25 10:23:32" updated="2005-08-15 10:26:58">
<type id="1857">
categorized question</type>
<author id="11732">
QandAEditors</author>
<data>
<field name="doctext">
&lt;code&gt;
$a="hi";
$b ="hello";
$c = "hibobhi";
$c=~ s/$a/$b/;
&lt;/code&gt;
How can I make $c = "hellobobhello" not "hellobobhi"?</field>
<field name="parent_node">
1835</field>
<field name="reputation">
1</field>
</data>
</node>
