# Regular Expression Search

Browsee's Regular Expression search is somewhat different to other tools you may have used like Google Analytics.

The regular expressions are somewhat similar to the implementation in Javascript.

Here are some examples of regular expressions you may want to use

1. To match all urls with text `abc`

you may use this regular expression: `.*abc.*`

2\. To match all urls with query parameter `source`

you may use this regular expression: .\*/`.*?source.*`

Notice you do not need to escape the forward slash (/).

3\. To match URLs with two level paths like

`x.com/y/z/`

you may this regular expression: `.*/[^/]+/[^/]+/`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.browsee.io/understand-your-users/session-search/regular-expression-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
