// Useragent RegExp rwebkit = /(webkit)[ //]([/w.]+)/, ropera = /(opera)(?:.*version)?[ //]([/w.]+)/, rmsie = /(msie) ([/w.]+)/, rmozilla = /(mozilla)(?:.*? rv:([/w.]+))?/, // Keep a UserAgent string for use with jQuery.browser userAgent = navigator.userAgent,
// For matching the engine and version of the browser browserMatch,
// Use of jQuery.browser is frowned upon. // More details: http://docs.jquery.com/Utilities/jQuery.browser uaMatch: function( ua ) { ua = ua.toLowerCase();
var match = rwebkit.exec( ua ) || ropera.exec( ua ) || rmsie.exec( ua ) || ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) || [];