Skip to main content

Customize - Editing Patterns & Regex(New)

Updated over 2 months ago

Patterns and Regular Expressions each have a summary tab for reviewing, creating and tuning conditions that power risk scans. Risk definitions have a set value of rules while the Pattern and Regex section outlines all rules a risk has access to use.

This guide covers details for managing risk patterns and regular expressions:


PATTERNS & REGEX VS. RISK DEFINITIONS

Properly editing conditions is key to ensuring accurate detections so it's crucial to understand how these features work together.

  • Patterns - Outlines saved collections of input conditions which can be utilized and related to any risk definition.

  • Regex - Outlines saved collections of regular expressions which can be utilized and related to any risk definition.

  • Risk Definition - Scan using patterns and/or regex combined with other unique conditions.


EDITING PATTERNS

The main Patterns tab lists all available patterns and their components.

  • + Add Pattern: Use to create a new pattern from scratch.

  • Edit: Use the pen icon in the Actions column to modify an existing pattern. Best for adding new slang terms or refining conditions to reduce false positives.

  • Delete: Use the trash icon to permanently remove a pattern. Deleting a pattern may break any Risk Definitions that are currently using it.

  • Keywords: Input comma separated list of words or phrases to flag for risk.

  • Context Words: Input comma separated list of words or phrases.

  • Context Check Length: Define proximity between keyword and context word.

  • Allowed Words: Input approved comma separated list of words or phrases.

  • Regex: Regular Expressions used for complex pattern matching.

  • Allowed Regex: Regular Expressions used for approved complex pattern.


EDITING REGEX

The Regex tab lists all available patterns and their components.

  • + Add Regex: Use to create a new regular expression from scratch.

  • Edit: Use the pen icon in the Actions column to modify an existing regex. Best for tuning match condition to reduce false positives.

  • Delete: Use the trash icon to permanently remove a regex. Deleting a regex may break any Risk Definitions that are currently using it.

  • Name: Assign identifier to regex pattern.

  • Pattern: Input regex pattern.


BEST PRATICE

Tuning patterns and regex is a great way to improve platform monitoring accuracy. Below are tips to help achieve optimal scanning results.

  • Use Tiers: Create "Moderate" and "Strict" versions of patterns. "Moderate" can use single keywords with context, while "Strict" can look for explicit phrases.

  • Refine with Exclusions: For false positive results don't just delete the keyword. Instead add Allowed Words to make the detection smarter.

  • Stay Current: Language and slang evolve quickly. Plan to review and edit patterns periodically. This is critical for topics like substance abuse and profanity.

Did this answer your question?