title: JavaScript - Remove Minecraft Color Codes from String
body: <p>I'm trying to remove minecraft color codes from a string:</p>
  
  <pre><code>[§aAnnouncement§r] §4test
  </code></pre>
  
  <p>and I searched here, tried my own, to no avail.</p>
  
  <p>Code:</p>
  
  <pre><code>module.exports.regexTest = function (message) {
      var regex = '(?i)§[0-9A-FK-OR]/g';
      return message.replace(regex,'');
  };
  </code></pre>
  
  <p>Now, by all accounts everything tells me that that regular expression works, but when I parse the message in post it doesn't remove anything.</p>
  
  <p>What is wrong with this regex code?</p>
  
  <p><strong>EDIT:</strong>
  Thanks to @anubhava for his help. It turns out the source I was recieving from was sending the wrong unicode. Fixed code:</p>
  
  <pre><code>console.log(message.replace(/\u00A7[0-9A-FK-OR]/ig,''));
  </code></pre>
  
  <p>Thanks for all your help, everyone!</p>