title: How to extract number from a string in javascript
body: <p>I have an element in javascript like follows:</p>
  
  <pre><code> &lt;span&gt;280ms&lt;/span&gt;
  </code></pre>
  
  <p>I want to extract 280 from the span element. How can I do it? The content within the span element will be any number followed by ms.</p>