Regex and Pattern Matching
XpressPurge does not currently support regular expression rules.
This is intentional. Keyword matching is simple text matching, account matching compares normalized handles, domain matching checks normalized domains, and multiple values inside one rule use OR matching. Advanced AND/OR condition logic is supported by the rule engine, but the current rule builder does not expose a multi-condition editor.
What Happens If You Type Regex Syntax?
If you type regex syntax into a keyword rule, XpressPurge treats it as normal text.
For example:
crypto|bitcoin
does not mean "crypto OR bitcoin".
It searches for the literal text:
crypto|bitcoin
How to Match Multiple Words Today
Use multiple chips or comma-separated values instead of regex.
In Options:
- Open Rules.
- Create or edit a Keyword rule.
- Type a value.
- Press Enter or comma to create a chip.
- Add more chips.
Example:
crypto, bitcoin, airdrop, free mint
This matches posts containing any of those values.
How OR Matching Works
Multiple values inside one rule use OR matching.
This rule:
crypto, bitcoin, solana
matches a post if it contains:
crypto; orbitcoin; orsolana.
How AND Matching Works
To require two or more conditions at the same time, create separate rules and rely on the rule engine. Every active Hide rule is independent; if any Hide rule matches, the post is hidden. To model "must contain A and B" as a single match, the rule engine supports conditions arrays with logic: "and", but the current Options UI does not expose a condition builder. Advanced AND/OR is primarily used by imported or draft rules that carry an explicit conditions list.
How to Match Phrases
Use a phrase as a chip.
Example:
follow for follow
This matches posts containing that phrase as normal text.
How to Match Handles
Use an Account rule.
Example:
@example, @another_user
XpressPurge normalizes handles with @, so typing example becomes @example.
How to Match Domains
Use a Link Domain rule.
Example:
example.com, spam-site.com
XpressPurge normalizes domains by removing:
https://http://www.- path text after the domain
How to Match Post Content Types
Use a Post Contains rule.
Available content types:
- Images
- Videos
- Quotes
- External links
These are selected as chips/toggles in Options. In the in-page quick modal, supported raw values are:
image, video, quote, externalLink
Current Regex Status
Regular expressions are not available in the rule builder.
Use chips and multiple rules instead.
Recommended Alternatives to Regex
Instead of a regex like:
crypto|bitcoin|airdrop
Use chips:
crypto, bitcoin, airdrop
Instead of a regex-like account pattern:
@bot[0-9]+
Add exact handles as you find them:
@bot123, @bot456
Instead of a domain pattern:
.*spam.*
Add the actual domains:
spam-site.com, another-spam-domain.com
Advanced Logic Notes
- The rule engine evaluates
conditionsarrays withlogic: "and"orlogic: "or". - Each condition can be keyword, account, media type, engagement, or link domain.
- Values inside a single condition still use OR matching when the condition is a multi-value keyword/account/domain rule.
- The current Options builder creates one rule type at a time; advanced multi-condition editing is available through rule payloads that include
conditionsandlogic.