I am trying to extract rating from a tweet using regular expression. For example for below tweet, I want to get the user rating(9.75) and maximum rating(10).
This is Logan, the Chow who lived. He solemnly swears he's up to lots of good. 9.75/10
I used below regex, but the capture groups 1 and 2 has results 75 and 10. I am not sure why the user rating is captured only after decimal group.
.*(\d+\.?\d+)\/(\d*\.?\d*)