Start getting better AI results today

Regex Tester & Generator

Test regular expressions with live matching or generate regex patterns for common use cases like emails, URLs, and AWS WAF rules.

Available Flags:

g- Global
i- Case-insensitive
m- Multiline
s- DotAll
u- Unicode
y- Sticky
Advertisement (728×90)

How it works

1.

Choose Mode

Test existing regex or generate new patterns.

2.

Enter Pattern/Text

Type your regex or select a pattern to generate.

3.

Test & Validate

See matches in real-time with flag explanations.

Common use cases

Email Validation

Test regex patterns for email validation.

AWS WAF Rules

Generate regex for AWS WAF to match specific hosts or URL paths.

Data Extraction

Extract specific patterns from text or logs.

String Replacement

Test patterns before using in code.

Frequently asked questions

What are regex flags?

Flags modify regex behavior: g (global - find all matches), i (case-insensitive), m (multiline - ^ and $ match line boundaries), s (dotAll - . matches newlines), u (unicode), y (sticky - match from lastIndex).

How do I use this for AWS WAF?

Generate a pattern (like URL or custom), then use it in AWS WAF regex pattern sets. For host-only matching, use patterns like ^example\.com$ in the Host header condition.

Do I need to escape special characters?

Yes. Characters like . * + ? ^ $ { } ( ) | [ ] \ need to be escaped with backslash (\).

Is my data stored?

No. All testing happens in your browser.

Start getting better AI results today