Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Save & Share
Save Regex
ctrl+s
Go to library entry
Save Regular Expression
Link to regular expression
Copy to clipboard
Your regex has been saved and may be accessed with this link by anybody you give it to.
Close
Submit Workspace to Regex Library
Title
*
0/150
Description
*
Write
Preview
Add header
Add bold text
Add italic text
Insert quote
Insert code snippet
Insert link
Add bulleted list
Add numbered list
Headers
H1
H2
H3
0/5000
Styling with Markdown is supported
Author
0/150
Update
Cancel
Flavor
Need help selecting flavor?
Need help selecting flavor?
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Flavor Help
Loading content...
Close
Function
Match
Substitution
List
Unit Tests
Tools
Code Generator
Sponsors
All your environment variables, in one place
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
Regular Expression
No Match
v1
Select Regex Version
Regex Versions
r"
Delimiters
"
'
"""
'''
Change delimiter
"
m
Regex Flags
g
lobal
Don't return after first match
m
ulti line
^ and $ match start/end of line
i
nsensitive
Case insensitive match
e
x
tended
Ignore whitespace
s
ingle line
Dot matches newline
u
nicode
Match with full unicode
a
scii
Make escape sequences perform ASCII-only matching
Set Regex Options
Copy to clipboard
Test String
Keyboard Shortcuts
Shortcut
Description
ctrl+1
Switch to regex matching
ctrl+2
Switch to regex substitution
ctrl+3
Switch to regex list substitution
ctrl+4
Switch to unit tests
ctrl+b
Open regex debugger
ctrl+g
Open code generator
ctrl+enter
Run unit tests (when view is open)
Close