title: How do I remove a textline from string with javascript?
body: <p>Im using a script to replace a string of text and adding a class. However, I need to replace, or remove, ONLY the string in question and keeping any other text. How do I do this? In this example i want to remove "EU" but keep any other text on the string.  </p>
  
  <p>This is the script Im using at the moment: </p>
  
  <pre><code>$('body').ready(function(){
  $( ".productboxArticlenumber:contains('EU')" ).text('newtext').addClass( "eu" ); });
  </code></pre>