Regex Tester

← Home

Regex Tester

Test regular expressions against text, inspect matches, positions, and capture groups.

Flags

Results

Examples

Letters only [A-Za-z]+
Numbers \d+
Email address [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}
URL https?:\/\/[^\s]+
Brazilian CPF \d{3}\.\d{3}\.\d{3}-\d{2}
Starts with HTTP ^https?:\/\/

About Regex Tester

A regular expression, commonly called a regex or regexp, is a pattern used to search, match, and manipulate text. This tool lets you test JavaScript regular expressions directly in your browser.

Regular Expression Flags

  • g — Global search. Finds all matches instead of stopping at the first match.
  • i — Case-insensitive matching.
  • m — Multiline mode.
  • s — Allows the dot character to match newline characters.
  • u — Enables Unicode-aware matching.
  • y — Enables sticky matching from the current position.

Match Information

For every match, the tool displays the matched value, its position in the original text, its length, and any capture groups defined in the regular expression.

Common Regex Examples

Use \d to match digits, \w for word characters, \s for whitespace, . for almost any character, and character ranges such as [A-Z].

Privacy: Regex patterns and test text are processed locally in your browser. They are not sent to an IceNex server.

Comentários

Postagens mais visitadas deste blog

JSON - Format & Validate