Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with replace

Status
Not open for further replies.

emms

Programmer
Jan 11, 2001
55
0
0
GB
I'm using Jscript and attempting to write something to strip out all &quot;<br>&quot; tags in a string and replace them with nothing i'm using:

Introduction = Introduction.replace(&quot;<br>&quot;, &quot;&quot;);

however this seems to be replacing only the first <br> tag in the string.

can anyone help!

thanks

Emma
 
try
Introduction = Introduction.replace(/&quot;<br>&quot;/g, &quot;&quot;);

_____________________________________________________________________
onpnt2.gif

 
wow that's fantastic!

thanks for your help

Emma
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top