Enabling RegEx

The RegEx checkbox on a website entry in the Plan Wizard
- Enter your pattern in the text field
- Check the RegEx box on that entry
- FocusMe will treat the entry as a regular expression instead of a literal string
FocusMe’s RegEx matching is always case-insensitive — you don’t need to add
(?i) to your patterns.Essential Patterns
Word Boundaries
Use\b to match whole words only:
store.steampowered.com
Does not match: upstream.example.com (because “steam” is part of “upstream”)
OR Matching
Use| (pipe) to match any of several options:
Combining Patterns
. is escaped as \. in x\.com because . in RegEx matches any character.
Practical Examples
Block All Gaming Platforms
Block All News Sites
Block YouTube Shorts and Reels
Block All Subdomains of a Domain
example.com, www.example.com, mail.example.com, etc.
RegEx Quick Reference
Common Mistakes
- Forgetting the RegEx checkbox — your pattern is treated as plain text
- Unescaped dots —
google.comin RegEx matchesgoogleXcomtoo. Usegoogle\.com - Too broad a pattern —
gameblocksgame.combut alsogamestop.comand any URL with “game” in it. Use word boundaries\bto be precise - Testing — try your pattern on a site like regex101.com before adding it to FocusMe