<font face="arial" size="2">Do you really need a regex just to replace one string with another?<br /><br />How about myString.replace("foo", "bar")?<br /><br /><br /></font><font face="Tahoma, Arial, Sans-Serif" size="2"><b>From</b>: Anthony Ettinger <a href="mailto:apwebdesign@yahoo.com">apwebdesign@yahoo.com</a><br /></font><br />I need to run a regex, simply replacing foo with bar<br />in $string...<br /><br />any help?<br /><br />Anthony Ettinger<br />ph: (408) 656-2473<br />web: <a href="http://www.apwebdesign.com">http://www.apwebdesign.com</a>