FluentRegex

Discover, build, and test regex patterns from examples — no regex expertise required.

History

Components

^
Anchor ^ $ \b \B
[
Character Set Specific characters
]
Character Set Specific characters
#
Digits \d \d+ \d{n}
~
Range a-z A-Z 0-9
abc
Literal Fixed text
( )
Group () (?:) (?=)
.*
Custom Any regex

Keyboard Shortcuts

Delete/Backspace Remove selected
Ctrl+Z Undo
Ctrl+Y Redo
↑/↓ ←/→ Navigate components

Pattern

Match specific characters at the start
[

Editing: Prefix

^ ^[ST]\d{7}[GH]$ $

Examples

Quick Test

✓ Matches

Test Examples

Tip: Use "!" prefix for examples that should NOT match (e.g., !X1234567G)

S1234567G Should match
Click to edit
T7654321H Should match
Click to edit
X1234567G Should NOT match
Click to edit

Settings

Automatically wrap pattern with start (^) and end ($) anchors

Automatically update pattern when examples change

Optimize Pattern

⚠️

Start anchor (^) is redundant with auto-anchors

Remove manual start anchor component

⚠️

End anchor ($) is redundant with auto-anchors

Remove manual end anchor component