If I use the resource found on the site, http://browscap.org/ua-lookup I see my current browser:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Once looked up I see the results that come back and a REGEX version is available, but not in the CSV file. I presume some have able to use the CSV file and translate that to something like REGEX to pattern match. I want to leverage the CSV file to then understand what my audience base is using for devices.
So from the User Agent about I see I get the two different things back, is there not another file somewhere to have the exact same results to import to a DB?
browser_name_regex
/^mozilla\/5\.0 \(.*windows nt 10\.0.*win64. x64.*\) applewebkit.* \(.*khtml.*like.*gecko.*\) chrome\/58\..*safari\/.*$/
browser_name_pattern
mozilla/5.0 (*windows nt 10.0*win64? x64*) applewebkit* (*khtml*like*gecko*) chrome/58.*safari/*
regex = LOWER(
CONCATENATE(
CONCATENATE("/^"
,SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(browscap[PropertyName],"/","\/"), ".", "\."), "(", "\("), "*", ".*"), "?", "."), ")", "\)")
)
, "$/"))