Regex Tester

Test and debug regular expressions with global match and case-insensitive options, real-time match results

Regex Tester

Tip: Enter only the regex pattern, no need to include slashes /

Match results will appear here...

Common Syntax Reference

Common Metacharacters
.Match any character except newline
\wMatch letter, digit or underscore
\sMatch any whitespace character
\dMatch digit
\bMatch word boundary (start or end)
^Match start of string
$Match end of string
Common Quantifiers
*Repeat zero or more times
+Repeat one or more times
?Repeat zero or one time
{n}Repeat n times
{n,}Repeat n or more times
{n,m}Repeat n to m times
Common Negation
\WMatch any character that is not letter, digit, underscore, or Chinese
\SMatch any character that is not whitespace
\DMatch any non-digit character
\BMatch position that is not word boundary
[^x]Match any character except x
[^aeiou]Match any character except aeiou
Regex Modifiers
iignore - Case insensitive
gglobal - Find all matches
mmulti line - ^ and $ match line breaks
sdotAll - . matches newline \n
Regex Tester Tool Guide
Tool Introduction

This is a free online regular expression testing tool that supports testing and debugging regular expressions, provides global match and case-insensitive options, displays match results in real-time, helping you quickly verify the correctness of regular expressions.

Usage Steps
  1. Enter the regular expression to test in the pattern input box
  2. Enter the text to match in the test text input box
  3. Select match options: Global Search (-g) and Ignore Case (-i)
  4. Click the "Test" button or wait for automatic testing
  5. View match results, including match content, position, and capture groups
Frequently Asked Questions
Regex Tester - Online Regular Expression Testing Tool