title: Regular Expression - Parse amount from given string
body: <p>I have a string (like text sms) from which I want to parse amount. But it only gives float amount.</p>
  <p>Example strings :-</p>
  <ol>
  <li><p>Your account 188383xxxx is credited with inr 3000 on 18aug20. Total aval bal inr 23044.22 blah blah blah...</p>
  </li>
  <li><p>Your account 188383xxxx is credited with inr 3000.33 on 18aug20. Total aval bal inr 23044.22 blah blah blah...&quot;</p>
  </li>
  </ol>
  <p>Regular Expression that I am using :-
  <strong>&quot;(inr)+[\s]?+[0-9]<em>+[\,]</em>+[0-9]<em>+[\.]</em>[0-9]{2}&quot;</strong></p>
  <p>Output of expression :-</p>
  <p>String 1) = <strong>inr 23044.22</strong>
  String 2) = <strong>inr 3000.33</strong>, <strong>inr 23044.22</strong></p>
  <p>I want get <strong>inr 3000</strong> for first string result also if it is integer amount. What I am missing?</p>