Welcome to WalkMe support

Please login in order to continue:

Work flows better with WalkMe
Work flows better with WalkMe.

URL Match Pattern

Last Updated February 18, 2024

Brief Overview

Match patterns are a way to specify groups of URLs: a match pattern matches a specific set of URLs.

Match pattern structure

All match patterns are specified as strings. Match patterns consist of three parts: scheme, host, and path. The scheme and host are separated by ://.



The scheme component can be one of the following: http or https.


The host component may take one of three forms:

Form Matches
* Any host.
*. Followed by part of hostname The given host and any of its subdomains.
A complete hostname without wildcards Only the given host.

Host must not include a port number.

* Note that the wildcard may only appear at the start.


The path component must begin with a /.

After that, it may subsequently contain any combination of the * wildcard and any of the characters that are allowed in URL paths or query strings. Unlike host, the path component may contain the * wildcard in the middle or at the end, and the * wildcards may appear more than once.

The value for the path matches against the string which is the URL path plus the URL query string. This includes the ? between the two, if the query string is present in the URL.
For example, if you want to match URLs on any domain where the URL path ends with, then you need to use an array of Match Patterns like ['*://*/*', '*://*/**']. The ?* is needed, rather than just bar*, in order to anchor the ending * as applying to the URL query string and not some portion of the URL path.

Neither the URL fragment identifier, nor the # which precedes it, are considered as part of the path.


The path pattern string should not include a port number. Adding a port, as in: http://localhost:1234/* causes the match pattern to be ignored. However, http://localhost:1234 will match with http://localhost/*


Pattern Example matches Example non-matches


Match HTTPS URLs on any host, whose path is "path".
(unmatched scheme)
(unmatched path)
(unmatched path)
(unmatched path)
(unmatched path due to URL query string)


Match HTTPS URLs on any host, whose path is "path/" and which has no URL query string.
(unmatched scheme)
(unmatched path)
(unmatched path)
(unmatched path)
(unmatched path due to URL query string)*

Match HTTPS URLs only at "", with any URL path and URL query string.
(unmatched scheme)
(unmatched host)

Match only this URL, or this URL with any URL fragment.

Anything else.*/b/*/

Match HTTPS URLs hosted on "", whose path contains a component "b" somewhere in the middle. Will match URLs with query strings, if the string ends in a /.*/
(unmatched path)
(unmatched path)
(unmatched path due to URL query string)

Invalid match patterns

Invalid pattern Reason
resource://path/ Unsupported scheme. No path.
https://mozilla.*.org/ "*" in host must be at the start.
https://* "*" in host must be the only character or be followed by ".".
http*:// "*" in scheme must be the only character. Host must not include a port number.
https://* Empty path: this should be "https://*/*".

Was this article helpful?

Thanks for your feedback!

Be part of something bigger.

Engage with peers, ask questions, share ideas

Ask the Community