Ok, take this user agent, for example:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625
Curious what all this means. I can understand a few things, obviously, such as Mozilla == Firefox and Windows NT 5.1 == Windows XP. But what is rv: 1.9.2.6, and what is gecko? and u?
Also, I'm working on setting up a script that puts various parts of it in separate variables, such as Mozilla and Windows NT 5.1, but how can I use RegEx to extract this if most (if not all) of the other sections in the User Agent are dynamic based on each user?
source
share