title: Javascript / Jquery - Get number from string
body: <p>the string looks like this</p>
  
  <pre><code>"blabla blabla-5 amount-10 blabla direction-left"
  </code></pre>
  
  <p>How can I get the number just after <code>"amount-"</code>, and the text just after <code>"direction-"</code> ?</p>