Programming Tips - Can I detect IE11 from its user agent string?

Date: 2013oct9 Product: IE Keywords: Internet Explorer, iexplore Q. Can I detect IE11 from its user agent string? A. No! OK, that was a bit strong. In previous versions of IE the user agent string contained "MSIE". But its not there for IE11. It does have "Trident" which is the layout engine. Example IE11 user agent string:
Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko
More info http://en.wikipedia.org/wiki/Internet_Explorer_11