-
Notifications
You must be signed in to change notification settings - Fork 3
Examples
For each filter, you will have to choose which part of the notifications to target, and enter one or two regex patterns to be used while matching. You can target the title, or the content, or either, or both. If you choose to target both, you will have to enter two patterns.
Let's say you wish to target notifications titles of the format "Charging started (27 m until full)". This can be achieved using several patterns.
Charginguntil fullCaution
This is usually too broad/generic: it may match notifications that you don't wish to match. Prefer a more specific pattern.
^Charging starteduntil full\)$Important
Parentheses must be escaped.
^Charging started \(27 m until full\)$Warning
This will not match, for instance, "Charging started (37 m until full)".
^Charging started \(.* until full\)$Here are some other templates you may find useful:
keyword|another string|yet another^(?!.*(your string))^(?!.*(keyword|another string|yet another))Use these templates to build your own pattern. You can visit regexr.com to learn more about regex, as well as build & test patterns. For advanced patterns, you can use this playground to test against the actual Kotlin regex engine.
If you're having difficulty targetting certain notifications, you can raise an issue describing your situation.