Clear search
Close search
Google apps
Main menu

The instructions in this help article may be affected by recent changes in the Analytics user interface. See this blog post for details. Help center updates are coming soon.

Caret (^)

Use the caret to match the following adjacent characters at the beginning of a string.

For example, ^St matches:

  • Start here
  • Stand here
  • Stop here

However, ^St doesn’t match:

  • 1 Start here
  • 2 Stand here
  • 3 Stop here

The preceding 3 lines start with a digit and a space, not with the letters “St”.

Use this type of regular expression to create segments, filters, or goal steps that match a URI. For example, if you need to isolate data for a particular directory of pages, you can use expressions like:

  • ^/mens/ (matches
  • ^/womens/ (matches
Was this article helpful?
How can we improve it?
Google Analytics training and support resources

Check out our comprehensive list to learn more about Analytics solutions.