RegEx101
Donate
Contact
Bug reports & Suggestions
regular
expressions
101
reg
ex
101
Regex Tester
Regex Library
IRC
General Settings
Display Whitespace
Use minimal view
Theme
Use light theme
Use dark theme
Regex Settings
Colorize syntax
Theme:
Default
Default - Light
Default
Enable smart auto-completion
Wrap long lines
Highlight groups
Show non-participating groups
Max execution time:
ms
Initializing editor, please stand by...
Loading content, please hold...
It seems like you have JavaScript disabled, rendering this website virtually useless. Please enable JavaScript to use this service. If you don't know how, try
this
.
You seem to be using an outdated version of your browser which is no longer supported by
regex101.com
. It is highly recommended that you upgrade your browser. Sorry for the inconvenience.
Save & Share
Save Regex (CTRL+S)
Fork Regex
Add to Regex Library
Flavor
PCRE
PCRE (PHP)
JS
JavaScript
PY
Python
Tools
Format Regex (requires free-spacing, /x)
Code Generator
Regex Debugger
n/a
Unit tests
Filter flavors
PCRE
PCRE (PHP)
JS
JavaScript
PY
Python
Filter type
View favorites
View contributions
Consider a donation
Status: Fetching debug info...
Display position in pattern
Disable internal engine optimizations
collapse all
Regular Expression
—
no match
/
/
Test string
Substitution
Create test
Add test
given the string
assert that
Test list
n/a
Explanation
An explanation of your regex will be automatically generated as you type.
Match information
Detailed match information will be displayed here automatically.
Quick reference
Full reference
Most used tokens
All tokens
Categories
General tokens
Anchors
Meta sequences
Quantifiers
Group constructs
Character classes
Flags/Modifiers
Substitution
Search result
/
~
@
;
%
`