title: Regex - how to remove 8 digits onwards with regex
body: <p>I want to get only the numbers from a string to a maximum length of 7 characters using RegEx.</p>
  
  <p>This is what I tried so far:<a href="https://jsfiddle.net/fjbdtvkb/" rel="nofollow noreferrer"><code>Demo</code></a></p>
  
  <p>Example:</p>
  
  <p><code>Samsung Galaxy Edge  $1.234.000 text text text 23 text  1289</code></p>
  
  <p>The RegEx should output:</p>
  
  <p><code>1234000</code></p>