Back to Library
Text

Support Order ID

Extract order IDs from support messages.

Pattern
\bORD-\d{7,10}\b

Test Cases

Order ORD-1234567 is delayed Match
Order 1234567 No Match

Related Blog Guides

Writing Regex Rules for Security Code Scanning

Create high-signal regex signatures for static security scanning with lower false positives and better triage for engineering teams.

Safely Supporting User-Generated Regex Patterns

Allowing end users to submit regexes can be powerful—and dangerous. This guide covers guardrails, sandboxing, and abuse-resistant execution models.

Building a Regex-Powered Lexer: Tokenization Patterns That Scale

Design a practical tokenizer with regex by ordering token rules, handling ambiguity, and avoiding pathological backtracking in source code parsing.

Try it Live

Test and customize this pattern in our interactive editor

Open in Editor
About Blog Patterns Cheatsheet GitHub

© 2026 TestRegex.