Use JavaScript to Replace Classname Value

Posted by user1515425 on Stack Overflow See other posts from Stack Overflow or by user1515425
Published on 2012-09-01T04:54:18Z Indexed on 2012/09/01 21:38 UTC
Read the original article Hit count: 251

Filed under:
|

I want to replace every occurrence of the numbers with the string: ???.

Here is an example string:

<em>Chelsea</em> 1-4 Atletico Madrid

How can I do this in JavaScript?

    <a href="https://www.google.com/url?sa=t&amp;source=web&amp;cd=9&amp;cad=rja&amp;ved=0CFEQtwIwCA&amp;url=http%3A%2F%2Fwww.whoateallthepies.tv%2Fchelsea%2F137070%2Fsuper-cup-chelsea-1-4-atletico-madrid-falcao-on-fire-as-blues-flop-in-monaco-photos-highlights.html&amp;rct=j&amp;q=chelsea&amp;ei=1odBUImpBIWA0AWM1oC4BA&amp;usg=AFQjCNEwdCCckt15XTkHSAf2fsUnGk9IJg&amp;sig2=IOrD6hfMrviW9ods0DG2dw" class="l" onmousedown="return rwt(this,'','0','','9','AFQjCNEwdCCckt15XTkHSAf2fsUnGk9IJg','IOrD6hfMrviW9ods0DG2dw','0CFEQtwIwCA',null,event)" title="Super Cup: Chelsea 1-4 Atletico Madrid – Falcao On Fire As Blues Flop In Monaco (Photos ...">Super Cup: <em>Chelsea</em> 1-4 Atletico Madrid – Falcao On <b>...</b></a>

Thanks in advance.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about classname