fork download
  1. import re
  2. p = re.compile(r'(?:Rs\.?|INR)\s*(\d+(?:[.]\d+)*)\b(?!\,)|(?<!\d\,)\b(\d+(?:[.]\d+)*)\s*(?:Rs\.?‌​|INR)')
  3. s = "Rs. 2000 , Rs.3000 , Rs 40,000.00 ,50,000 INR 600.25 INR"
  4. print([x if x else y for x,y in p.findall(s)])
Success #stdin #stdout 0.01s 8968KB
stdin
Standard input is empty
stdout
['2000', '3000', '600.25']