Test regular expressions online. Analyze matches, correct errors, and create effective patterns for data search.
^
The start of a string$
The end of a string.
Wildcard which matches any character, except newline (\n)|
Matches a specific character or group of characters on either side\
Used to escape a special charactera
The character "a"ab
The string "ab"*
Used to match 0 or more of the previous?
Matches 0 or 1 of the previous+
Matches 1 or more of the previous{5}
Matches exactly 5{5,}
Matches 5 or more occurrences of the preceding character or group{5,10}
Matches between 5 and 10 occurrences\s
Matches a whitespace character\S
Matches a non-whitespace character\w
Matches a word character (alphanumeric + underscore)\W
Matches a non-word character\d
Matches one digit\D
Matches one non-digit[\b]
A backspace character\c
Matches a control character\n
Matches a newline\t
Matches a tab\r
Matches a carriage return\ZZZ
Matches octal character ZZZ (e.g., \040 for space)\xZZ
Matches hex character ZZ (e.g., \x20 for space)\0
A null character\v
A vertical tab(xyz)
Capturing group of characters(?:xyz)
Non-capturing group of characters[xyz]
Matches any one character from the set x, y, or z[^xyz]
Matches any character *not* in the set x, y, or z[a-q]
Matches any character from 'a' through 'q'[0-7]
Matches any digit from '0' through '7'$`
Inserts the portion of the string that precedes the match$'
Inserts the portion of the string that follows the match$+
Inserts the last matched capturing group$&
Inserts the entire matched string$n
Inserts the nth captured group (e.g., $1, $2)(?=xyz)
Positive lookahead (asserts xyz follows)(?!xyz)
Negative lookahead (asserts xyz does not follow)(?<=xyz)
Positive lookbehind (asserts xyz precedes)(?<!xyz)
Negative lookbehind (asserts xyz does not precede)\b
Word Boundary (position between a word char and a non-word char)\B
Non-word Boundary(?#comment)
Comment (ignored by regex engine)Please note that regular expressions in this tool are processed according to the ECMAScript standard (JavaScript RegExp). This means that the behavior of patterns corresponds to how they work in a browser or in JavaScript code. Some constructs, such as character escaping (/ and /), may behave the same way, even if they look different. If you are used to regular expressions in other languages (for example, Python, PHP, .NET or POSIX), note that they may have differences in syntax and matching logic.
This tool allows you to test regular expressions (RegEx) and check their operability. RegEx is widely used in programming, data processing, and SEO analytics.
With it, you can search, replace, and analyze text patterns, simplifying work with large amounts of data.
Convert timestamps between different formats
Decode URL-encoded strings
Check URL redirects and see where they lead
Allows you to check RegExp patterns in real-time, which simplifies the development and debugging of complex search patterns.
Allows you to consider case sensitivity, global search, multiline mode, and other settings used in programming languages.
Allows you to quickly create expressions for automatic processing of large text arrays, logs, and HTML code.