I\'ve been trying to find a parser or regex that will give me the Android OS version from a user agent string.
E.g.
Mozilla/5.0 (Linux; U; Android 2.
If you want to use it with User-Agent it might be safe but else you shouldn't use it.
Android ((\d+|\.)+[^,;]+)
It catches everything after Android it works with,
1.6 2.4.4 10.12.5
To test with Live Regex: https://www.phpliveregex.com/p/uPw