How to Filter Windows 10/11 Notifications Based on String/Regex
Windows 10/11 provides a variety of notifications to keep you informed about important events and updates. However, sometimes these notifications can become overwhelming, especially when you receive notifications that are not relevant to you. Fortunately, Windows allows you to filter notifications based on specific strings or regular expressions (regex). In this article, we will guide you through the process of filtering Windows 10/11 notifications to help you stay focused on what matters most.
Step 1: Open the Windows Settings
To begin, you need to open the Windows Settings. You can do this by clicking on the Start button in the bottom-left corner of your screen and selecting the gear icon, which represents the Settings app. Alternatively, you can press the Windows key + I on your keyboard as a shortcut to open the Settings.
Step 2: Access the Notifications & Actions Settings
Once the Settings app is open, locate and click on the "System" category. In the left sidebar, you will find "Notifications & actions." Click on it to access the notification settings.
Step 3: Customize Notifications
Inside the "Notifications & actions" settings, you will see various options to customize your notification experience. Scroll down until you find the section titled "Notifications." Here, you can manage how notifications are displayed and filtered.
Step 4: Enable Focus Assist
Focus Assist is a feature in Windows that allows you to automatically filter notifications based on your preferences. To enable Focus Assist, click on the "Focus Assist" option.
Focus Assist provides three modes: "Off," "Priority only," and "Alarms only." For our purpose of filtering notifications, we will focus on the "Priority only" mode. Select this mode to proceed.
Step 5: Customize Priority List
After enabling "Priority only" mode, you can customize the priority list. This list determines which notifications are allowed to interrupt you. To add specific strings or regex patterns to the priority list, click on the "Customize your priority list" option.
A new window will open, allowing you to manage your priority list. Here, you can add strings or regex patterns that match the notifications you want to receive. For example, if you want to receive notifications related to emails, you can add the string "email" to the list.
Step 6: Add Strings or Regex Patterns
To add a string or regex pattern, click on the "Add" button. A text box will appear where you can enter your desired string or regex. If you are not familiar with regex, you can simply enter a specific word or phrase to match.
For more advanced users, you can utilize regex patterns to filter notifications based on specific criteria. Regex allows you to create more complex patterns to match a wider range of notifications. However, it requires some knowledge of regex syntax. If you are new to regex, there are plenty of online resources and tutorials available to help you learn.
Step 7: Save and Apply Changes
After adding the desired strings or regex patterns to the priority list, click on the "Save" button to apply the changes. Windows will now filter notifications based on the specified criteria.
Step 8: Test and Refine
Once you have set up the filters, it's a good idea to test them to ensure they are working as expected. Trigger notifications that match your specified criteria and observe if they are allowed or blocked. If necessary, you can go back to the "Customize your priority list" window and make adjustments to the filters.
Remember, it may take some trial and error to find the perfect balance for your notification filtering. Refine your filters over time to optimize your notification experience.
Conclusion
Filtering Windows 10/11 notifications based on strings or regex patterns can help you declutter your notification center and focus on the notifications that are most important to you. By following the steps outlined in this article, you can customize your notification experience and stay informed without unnecessary distractions.
| Number | Source |
|---|---|
| 1 | Microsoft Support |
| 2 | Regular Expressions Tutorial |