Back to Library
DevOps

GitHub PR Reference

Match pull request references like #1234 in text.

Pattern
#(\d{1,6})\b

Test Cases

Fixes #4821 Match
Fixes issue No Match

Related Blog Guides

API Input Validation Regex Patterns (Without Over-Blocking Users)

A practical validation catalog for API fields: IDs, slugs, versions, currency, and dates with clear limits and fallback parsing.

Regex Patterns for Log Parsing: 7 Production-Ready Recipes

Use battle-tested regex patterns to extract timestamps, status codes, trace IDs, and error messages from noisy application logs.

Regex Release Checklist: Quality Gates Before Shipping

A release checklist for regex-heavy systems covering correctness tests, performance thresholds, engine parity checks, and rollout safeguards.

Try it Live

Test and customize this pattern in our interactive editor

Open in Editor
About Blog Patterns Cheatsheet GitHub

© 2026 TestRegex.