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.
May I present an answer that others can easily copy and paste.
navigator.userAgent.match(/Android [\d+\.]{3,5}/)[0].replace('Android ','')