title: Using removeClass regex to remove multiple class prefixes
body: <p>The below jQuery searches for and removes any classes containing my prefix <code>bg-</code>. It is used on the body to remove any <code>bg-</code> prefixed classes i.e <code>bg-red bg-opacity</code> and so on.</p>
  <p>I'd like to edit this to be able to handle multiple prefixes, i.e <code>bg-</code> and <code>text-</code>, but am struggling to get this to work.</p>
  <p>Is anybody familiar with regex and could help?</p>
  <pre><code>body.removeClass(function (index, css) {
    return (css.match (/(^|\s)bg-\S+/g) || []).join(' ');
  });
  </code></pre>