title: How do i get the last 2 numbers from a url into a variable using javascript
body: <p>Example url:</p>
  
  <blockquote>
    <p>www.example.com/example/createnew/#47</p>
  </blockquote>
  
  <p>or</p>
  
  <blockquote>
    <p>www.example.com/example/createnew/#5462</p>
  </blockquote>
  
  <p>I want to put the number behind the  '#' in a variable. but the size of the number can change.</p>
  
  <p>how do i do this?</p>
  
  <p>(without jquery or any other library)</p>