Page Inspect
Internal Links
11
External Links
3
Images
1
Headings
3
Page Content
Title:
Debuggex: Online visual regex tester. JavaScript, Python, and PCRE.
Description:Test your regex by visualizing it with a live editor. JavaScript, Python, and PCRE.
HTML Size:26 KB
Markdown Size:3 KB
Fetched At:November 18, 2025
Page Structure
h4Sharing Expression
h4Embed Expression
h4Generate Code Snippet
Markdown Content
Debuggex: Online visual regex tester. JavaScript, Python, and PCRE.
- Pricing
- Blog
- Tutorial
- Login/Signup
- Share
- Code Snippet
Using regexes for extracting data from web pages? Check out ParseHub, a visual web scraping tool built by the team behind Debuggex.
{{reMetaModel.title}} {{reMetaModel.description}} Done Editing Embed on StackOverflow
View Cheatsheet
Visual Mode
Text Mode
{{nfaModel.error.msg}}
**Result:** Matches Does not match starting at the black triangle slider
Unit Tests (showhide) Help Add new unit test Login to add unit tests You haven't added any unit tests yet {{unitTestModel.tests.length}} Total Tests: Passing ({{unitTestModel.tests.length}}); Failing ({{unitTestModel.failing.length}})
No unit tests added.
Expected Matches (hover over highlights for details)
Actual Matches
Edit
Passing
Enter a string to be tested. If all highlighted matches and subgroups look correct, click "This is right".
This is right This is wrong Suggest Cancel Delete
Enter a string to be tested. If all highlighted matches and subgroups look correct, click "This is right".
This is right This is wrong Suggest Cancel
Library (showhide) Help
{{dep.title}}
Login to view details of this regex
Show cheatsheet
{{flavors\[reModel.flavor\].external}} regex quick reference (hide):
\[abx-z\]
One character of: a, b, or the range x-z
\[^abx-z\]
One character except: a, b, or the range x-z
a|b
a or b
a?
Zero or one a's (greedy)
a??
Zero or one a's (lazy)
a\*
Zero or more a's (greedy)
a\*?
Zero or more a's (lazy)
a+
One or more a's (greedy)
a+?
One or more a's (lazy)
a{4}
Exactly 4 a's
a{4,8}
Between (inclusive) 4 and 8 a's
a{9,}
9 or more a's
(?>...)
An atomic group
(?=...)
A positive lookahead
(?!...)
A negative lookahead
(?<=...)
A positive lookbehind
(?<!...)
A negative lookbehind
(?:...)
A non-capturing group
(...)
A capturing group
(?P<n>...)
A capturing group named n
^
Beginning of the string
$
End of the string
\\d
A digit (same as \[0-9\])
\\D
A non-digit (same as \[^0-9\])
\\w
A word character (same as \[\_a-zA-Z0-9\])
\\W
A non-word character (same as \[^\_a-zA-Z0-9\])
\\s
A whitespace character
\\S
A non-whitespace character
\\b
A word boundary
\\B
A non-word boundary
\\n
A newline
\\t
A tab
\\cY
The control character with the hex code Y
\\xYY
The character with the hex code YY
\\uYYYY
The character with the hex code YYYY
.
Any character
\\Y
The Y'th captured group
(?1)
Recurse into numbered group 1
(?&x)
Recurse into named group x
(?P=n)
The captured group named 'n'
(?#...)
A comment
Full {{flavors\[reModel.flavor\].external}} regex cheatsheet
×#### Sharing Expression
Share this link to get back to exactly this page:
×#### Embed Expression
Paste this code into a StackOverflow answer to embed an image with a link to this exact page:
Preview:
Debuggex Demo
×#### Generate Code Snippet
The free tier doesn't support code snippets using expressions from the library. Upgrade my account.
Copy and paste this snippet directly into your code:
{{genModel.val}}
Copyright © 2013 www.debuggex.com
Blog | Libraries | Contact | Privacy | Terms | Twitter