Skip to content

Instantly share code, notes, and snippets.

@ptz0n
Created December 13, 2012 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptz0n/4276448 to your computer and use it in GitHub Desktop.
Save ptz0n/4276448 to your computer and use it in GitHub Desktop.
Regexp matching UserAgent for Mobile Safari on iPhone or iPod touch devices running iOS 6, exept in application browser (web view).
iPhone OS 6(?:(?:.|\n|\r)*)Safari
Mobile Safari
Mozilla/5.0 (iPhone; CPU iPhone OS 6_0_1 like Mac OS X)
AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A523
Safari/8536.25
In app web view
Mozilla/5.0 (iPhone; CPU iPhone OS 6_0_1 like Mac OS X)
AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10A523
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment