Home/Tools/Regex Tester

Regex Tester

Test regular expressions with pattern library and explanations

Privacy Notice: All regex testing happens in your browser. Nothing is sent to a server or stored.

Quick Presets

Click to load pattern + sample text

Regular Expression Pattern

//
gimsuy

Flags

Test String

Enter test string here...

Pattern Library

Match Details

No matches found

Try adjusting your pattern or test string

Pattern Explanation

Enter a regex pattern to see its explanation

Quick Reference Guide

Character Classes

.Any character except newline
\dAny digit (0-9)
\DAny non-digit
\wAny word character (a-z, A-Z, 0-9, _)
\WAny non-word character
\sAny whitespace character
\SAny non-whitespace character
[abc]Any of a, b, or c
[^abc]Not a, b, or c
[a-z]Any lowercase letter

Quantifiers

*Zero or more
+One or more
?Zero or one (optional)
{3}Exactly 3
{3,}3 or more
{3,5}Between 3 and 5

Anchors

^Start of string/line
$End of string/line
\bWord boundary
\BNot a word boundary

Groups

(abc)Capturing group
(?:abc)Non-capturing group
(?<name>abc)Named capturing group
\1Backreference to group 1

Lookaround

(?=abc)Positive lookahead
(?!abc)Negative lookahead
(?<=abc)Positive lookbehind
(?<!abc)Negative lookbehind

Special

|Alternation (OR)
\Escape special character
\nNewline
\tTab
\rCarriage return

Need Professional IT Services?

Our IT professionals can help optimize your infrastructure and improve your operations.

Frequently Asked Questions

Common questions about the Regex Tester

A regular expression (regex) is a sequence of characters that defines a search pattern. Regex is used for pattern matching, text validation, search and replace operations, and data extraction. It's a powerful tool for working with strings in programming.

â„šī¸ Disclaimer

This tool is provided for informational and educational purposes only. All processing happens entirely in your browser - no data is sent to or stored on our servers. While we strive for accuracy, we make no warranties about the completeness or reliability of results. Use at your own discretion.