title: Split a string at every occurrence of arithmetic operator
body: <p>I have the following variables</p>
  
  <pre><code>var arithmetic = "96-66.33+99.3/22*58.2";
  var arr;
  var operator = "/*+-^";
  </code></pre>
  
  <p>I want to <strong>split</strong> the <code>arithmetic</code> at every <strong>occurrence</strong> or <code>index</code> of <code>operator</code> variable.</p>
  
  <p>The final result will be <code>["96", "-66.33", "+99.3", "/22", "*58.2"];</code></p>
  
  <p><strong>Final solution provided by V.Roudge</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var arithmetic = "96-66.33+99.3/22*58.2";
  arithmetic = arithmetic.split(/(?=[-+*\/])/);
  console.log(arithmetic);</code></pre>
  </div>
  </div>
  </p>