ESC

Keyboard Shortcuts

Navigation

Open SearchCtrlK
Go to HomeCtrlH
Go to DashboardCtrlD
Quick CreateCtrlN

Tools

Invoice GeneratorCtrl1
Link ShortenerCtrl2
Contract BuilderCtrl3
SoloLinkCtrl5

Theme

Light ThemeCtrlShiftL
Dark ThemeCtrlShiftD
Toggle Shortcuts?

Actions

Close ModalEsc
SoloKit
12:00 AM

Regex Tester

Test and debug regular expressions in real time. No sign-up required.

How to Use

1. Enter a regex pattern in the field below or click a sample pattern button.
2. Toggle flags (g, i, m, s, u, y) to change matching behavior.
3. Type or paste test text in the Test String area.
4. View matches in the right panel with indices and capture groups.
5. Use Replace to transform text with regex, or Extract to find specific patterns.
6. Copy matches silently with the Copy All button.

Regular Expression

Samples:

Test String

Replace

Extract

Testing regex...

Matches

0 matches found
Enter a pattern and test string above.
Matches: 0 Groups: 0 Time: 0ms Chars: 0 Lines: 0

Common Patterns

Quick Reference

  • . Any char
  • \d Digit
  • \D Non-digit
  • \w Word char
  • \W Non-word
  • \s Whitespace
  • \S Non-whitespace
  • \b Word boundary
  • \B Non-boundary
  • ^ Start
  • $ End
  • * 0+
  • + 1+
  • ? 0-1
  • {n} Exactly n
  • {n,m} Range
  • [abc] Set
  • [^abc] Not set
  • (abc) Group
  • (?:abc) Non-group
  • | OR
  • (?=) Lookahead
  • (?!) Negative lookahead