title: Unformat string with number to number by currency code
body: <p>I want unformat string back into the number
  If with USD all works from the box with accounting library, but for example for russian ruble it fails.
  String examples are <code>1,00 руб. (RUB)</code> and <code>$20.00 (USD)</code>
  So, I could parse those string and get currency code (in case I might need to provide it to the library) with for example this code:</p>
  
  <p>I tried accounting and numbro libraries </p>
  
  <pre class="lang-js prettyprint-override"><code>// getting currency code
  let init = (data.orderAmount).indexOf('(')
  let fin = (data.orderAmount).indexOf(')')
  console.log(data.orderAmount).substr(init + 1, fin - init - 1)
  </code></pre>
  
  <p>If I for example pass <code>1,00 руб. (RUB)</code> into the accounting.unformat I would get <code>100</code> instead of <code>1</code>, but for usd example it would work and result would produce <code>20</code>. Same result with numbro, only need to also remove part in <code>()</code> in that case.</p>
  
  <p>What I really want is solution, where I could pass currency code and string, and get correct number from the string for the given currency.</p>
  
  <p>I tried globalize library <code>numberParser</code> and <code>currencyFormatter</code> without any success</p>