HerramientasGratis Online

Regex Tester

Test regular expressions instantly — free and no sign-up

Write your regular expression, toggle the flags you need, and paste your test text. See matches highlighted in real time with capture groups.

//g
Anuncio · belowTool

Quick reference

How it works

  1. 1Type your regular expression in the pattern field. Use the quick reference for common patterns.
  2. 2Toggle flags as needed: g to find all matches, i to ignore case.
  3. 3Paste the text you want to analyze. Matches are highlighted automatically.
  4. 4Switch to the "Replace" tab to preview how the text would look with substitutions.

Frequently asked questions

Regex tester: regular expressions online with explanation

Regular expressions (regex) are search patterns that allow finding, validating, and transforming text with precision. They are a fundamental tool in programming, data analysis, and system administration.

Basic regex syntax

  • . — any character except newline.
  • \d — digit (0-9); \w — word character (a-z, A-Z, 0-9, _).
  • * — zero or more; + — one or more; ? — zero or one.
  • {n,m} — between n and m repetitions.
  • ^start — start anchor; end$ — end anchor.
  • [abc] — character class; [^abc] — negation.

Most important flags

g (global): finds all matches, not just the first. i (insensitive): ignores case. m (multiline): ^ and $ apply to each line. s (dotAll): dot also matches newlines.

Common use cases

Validation of emails, URLs, and phone numbers. Extracting data from logs. Advanced search and replace in code editors. Text analysis and natural language processing. Parsing custom formats.

Anuncio · midContent