DocsFiltering & IntelligenceRegex and Pattern Matching

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:

text
crypto|bitcoin

does not mean "crypto OR bitcoin".

It searches for the literal text:

text
crypto|bitcoin

How to Match Multiple Words Today

Use multiple chips or comma-separated values instead of regex.

In Options:

  1. Open Rules.
  2. Create or edit a Keyword rule.
  3. Type a value.
  4. Press Enter or comma to create a chip.
  5. Add more chips.

Example:

text
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:

text
crypto, bitcoin, solana

matches a post if it contains:

  • crypto; or
  • bitcoin; or
  • solana.

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:

text
follow for follow

This matches posts containing that phrase as normal text.

How to Match Handles

Use an Account rule.

Example:

text
@example, @another_user

XpressPurge normalizes handles with @, so typing example becomes @example.

How to Match Domains

Use a Link Domain rule.

Example:

text
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:

text
image, video, quote, externalLink

Current Regex Status

Regular expressions are not available in the rule builder.

Use chips and multiple rules instead.

Instead of a regex like:

text
crypto|bitcoin|airdrop

Use chips:

text
crypto, bitcoin, airdrop

Instead of a regex-like account pattern:

text
@bot[0-9]+

Add exact handles as you find them:

text
@bot123, @bot456

Instead of a domain pattern:

text
.*spam.*

Add the actual domains:

text
spam-site.com, another-spam-domain.com

Advanced Logic Notes

  • The rule engine evaluates conditions arrays with logic: "and" or logic: "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 conditions and logic.