Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8263155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:00:28+00:00 2026-06-08T04:00:28+00:00

Per the following documentation: https://developers.google.com/chrome/mobile/docs/user-agent Here is Chrome for iOS UA String: Mozilla/5.0 (iPhone;

  • 0

Per the following documentation: https://developers.google.com/chrome/mobile/docs/user-agent

Here is Chrome for iOS UA String:

Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; en) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile/9B206 Safari/7534.48.3

And here is Safari for iOS UA String:

Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543 Safari/419.3

As best as I can tell the difference going forward will be that Chrome includes “CriOS”. I want to be able to distinguish between these two browsers and so set about doing that using a regular expression.

Using:

/Gecko\) (?!CriOS)/

I’m able to do that but am paranoid as I am not including iPhone in the expression (perhaps this will also trigger on Android, etc.)

I want to write the following regular expression that returns a match when:

  1. The string contains “iPhone”
  2. The string does not contain “CriOS”

How would I go about doing that?

FYI I’ve been using rubular for testing reg exp which has been awesome http://rubular.com/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:00:30+00:00Added an answer on June 8, 2026 at 4:00 am

    This should do it :

    iPhone(?!.*?CriOS)
    

    iPhone matches any occurence of that word. It then uses a negative lookahead from the iPhone match. .*?CriOS matches any/all characters until it finds CriOS. The (?!expr) is a negative lookahead. If the expression is false then what comes before it (Iphone) will match, otherwise it won’t.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Per the documentation located here: https://developers.facebook.com/docs/opengraph/news/ I should be able to post a news.reads?article
As per JIRA documentation http://www.atlassian.com/software/jira/docs/latest The following filter will show the issues opned by
As per Open Graph's documentation at http://developers.facebook.com/docs/opengraph , we can specify our own og:types.
As per the documentation in the following link, we can get the user id
In the Mongoose documentation at the following address: http://mongoosejs.com/docs/embedded-documents.html There is a statement: DocumentArrays
The url http://code.google.com/intl/lv/apis/maps/documentation/directions/ includes the following :- > Usage Limits Use of the Google
As per the Authentication Documentation , I'm directing my user's to the following URL
As per the example in the documentation I made the following code that fails
Per the MSDN documentation , the following syntax is used: // A read-write instance
The samples and documentation in question can be found here: http://static.springsource.org/spring-flex/docs/1.5.0.M1/ The reference doc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.