title: Regex to match a digit not followed by a dot(".")
body: <p>I have a string  </p>
  
  <blockquote>
    <p><em>string 1</em>(excluding the quotes) -> "my car number is #<strong>8746253</strong> which is actually cool"</p>
  </blockquote>
  
  <p>conditions - The number 8746253, could be of any length and<br>
             - the number can also be immediately followed by an end-of-line.  </p>
  
  <p>I want to group-out <strong>8746253</strong> which should not be followed by a dot "."<br>
  I have tried,</p>
  
  <blockquote>
    <p>.*#(\d+)[^.].*</p>
  </blockquote>
  
  <p>This will get me the number for sure, but this will match even if there is a dot, because [.^] will match the last digit of the number(for example, <strong>3</strong> in the below case)</p>
  
  <blockquote>
    <p><em>string 2</em>(excluding the quotes) -> "earth is #<strong>8746253.Kms</strong> away, which is very far"  </p>
  </blockquote>
  
  <p>I want to match only the <strong><em>string 1</em></strong> type and not the <strong><em>string 2</em></strong> types.</p>