Regex Mode
Using Regex Mode
Section titled “Using Regex Mode”Regex Mode is designed for Ads managers who have some coding knowledge – or want to gain it. It provides a technically advanced way to generate negative keywords using regular expressions as search term patterns.
How Regex Mode works
Section titled “How Regex Mode works”- Analyze your search terms and identify word components that are problematic or irrelevant.
Let’s say the critical patterns are “münze”, “ballerinas”, and “bar”. Users might write “münze” as “munze” or “muenze”. “ballerinas” might be misspelled as “balerinas”. “bar” should only match as a standalone word. You would then define the following regular expression as your search term pattern: .*(m(ü|ue|u)nze|ball?erina|\bbar\b).*
- Confirm your entry by pressing the Enter key.
What this regex pattern means
Section titled “What this regex pattern means”- The search term will be excluded or safeguarded based on the pattern type (Exclude or Safe).
- The individual components are:
- m(ü|ue|u)nze
- ball?erina
- \bbar\b
Explanation of the syntax:
Section titled “Explanation of the syntax:”- | defines an OR condition.
- () groups multiple options into one logical unit.
- .* at the beginning and end allows for any characters before or after the matched term.
- \b ensures the word boundary, meaning the match must start or end as a whole word.