I have stored visitors’ user_agent info in my MS-SQL database. Each row has this regular format:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; F-6.0SP2-20041109; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTbORJ/5.14.1.20007)
Is it possible to filter and display browser information? Something like if string contains %MSIE 8.0% then output as IE8, if it contains %Firefox% then output as Firefox and etc.
I have searched everywhere and I can’t find any help.
You can use a
CASEexpression to handle that: