Writing Custom Regex Rules
Available for Pro & Enterprise Plans
Beyond CSS selectors (which hide specific places on a page), you can mask data based on text patterns using Regular Expressions (Regex). This is incredibly powerful for hiding proprietary identifiers that appear dynamically.
Creating a Regex Rule
- Open the Extension Settings dashboard.
- Go to the Rules tab and click "New Rule".
- Set the Type to Regex.
Common Examples
1. Internal Project IDs
If your project codes look like PROJ-1234:
\bPROJ-\d{4}\b2. AWS Access Keys
Matches the standard format for AWS Key IDs (20 chars, starting with AKIA/ASIA):
(AKIA|ASIA)[0-9A-Z]{16}3. Specific Currency Amounts
Hide any dollar amount over $1,000:
\$\d{1,3}(,\d{3})*(\.\d{2})?Note: Regex rules run on the text content of the entire page. Complex regexes on very large pages (like an infinite-scroll log file) can impact performance. Use specific patterns rather than generic ones like
.*.