Search results and measurement
Regex filter: meaning, examples and practical use
A regular expression filter includes or excludes data using a formal text pattern. It can match several URL variants or query forms with one condition; its precise behavior depends on the syntax and matching rules supported by the system.
Also known as: Reguláris kifejezéses szűrés
At a glance
- Regex matches text patterns rather than understanding search intent.
- Partial matching differs from matching an entire value.
- Check the pattern against known positive and negative examples.
On this page

What can a pattern describe?
Alternatives or a fixed URL prefix are common uses. Under partial matching, dog|cat can select text containing either word. ^ and $ can constrain the beginning and end. This is text matching rather than interpretation of meaning.
Why do the tool's rules matter?
The Search Console filtering guide uses RE2 syntax. A complicated expression copied from another program may not be supported. Also check case handling and partial matching in the actual interface.
Example: two language collections
Imagine an analyst using /(hu/fogalomtar|glossary)/ against full URLs to find two path families. They test it with a Hungarian article, an English article and an unrelated page. Index URLs without a trailing slash may need separate treatment.
Which mistakes deserve attention?
A dot commonly means any character rather than a literal period. An overly broad exclusion can hide relevant data. Read through matches for the intended query pattern and document the filter. Regex cannot restore data absent from the report or decide whether a text match is commercially relevant.