flashman
← All tools

Regex

regex • test

Matches: 2
1. @0: fooBar | groups: ["Bar"]
2. @7: fooBaz | groups: ["Baz"]

About this tool

Test regular expressions against sample text with match highlighting. Regex is used for validation, search, and log parsing across many languages.

Your input is processed in the browser. We do not upload tool payloads to our servers.

Common use cases

  • Prototype email or ID validation patterns.
  • Debug why a log grep pattern misses lines.
  • Learn capturing groups with live feedback.

Examples

Match digits

The pattern \d+ finds one or more consecutive digits in the input string.

\d+

FAQ

Which regex flavor?
JavaScript RegExp semantics apply. Other engines may differ slightly.

Related guide

How to prototype regular expressions safely before shipping validation logic.

Read: Regex testing workflow: match with confidence