Regular
Expressions
101
@regex101
Follow me on twitter!
Donate
Like regex101? Support it by donating!
Sponsor
Become a sponsor!
Contact
Send me an email
Bug Reports & Feedback
Bugs or suggestions go here
Wiki
Wiki (Info & FAQ)
Whats new?
Whats new?
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Consider a donation
Consider a donation
Become a sponsor
Become a sponsor
Save & Share
Save Regex
ctrl+s
Update Regex
ctrl+⇧+s
Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python 2.7
Golang
Java 8
Function
Match
Substitution
List
Unit Tests
Tools
Code Generator
Sponsor
Jamstack at Scale
Explanation
"
(
[
023
]
3
|
[
067
]
0
|
[
1289
]
1
|
5
[
5689
]
|
67
|
96
|
88
|
77
|
65
|
05
)
$
|
^
(
8
|
4
[
358
]
|
7
[
147
]
|
51
|
37
|
30
)
|
865
|
349
|
2
.
5
|
761
|
74
[
348
]
|
728
|
811
|
990
"
gm
1st Alternative
(
[
023
]
3
|
[
067
]
0
|
[
1289
]
1
|
5
[
5689
]
|
67
|
96
|
88
|
77
|
65
|
05
)
$
1st Capturing Group
(
[
023
]
3
|
[
067
]
0
|
[
1289
]
1
|
5
[
5689
]
|
67
|
96
|
88
|
77
|
65
|
05
)
1st Alternative
[
023
]
3
Match a single character present in the list below
[
023
]
023
matches a single character in the list
023
(case sensitive)
3
matches the character
3
literally (case sensitive)
2nd Alternative
[
067
]
0
Match a single character present in the list below
[
067
]
067
matches a single character in the list
067
(case sensitive)
0
matches the character
0
literally (case sensitive)
3rd Alternative
[
1289
]
1
Match a single character present in the list below
[
1289
]
1289
matches a single character in the list
1289
(case sensitive)
1
matches the character
1
literally (case sensitive)
4th Alternative
5
[
5689
]
5
matches the character
5
literally (case sensitive)
Match a single character present in the list below
[
5689
]
5689
matches a single character in the list
5689
(case sensitive)
5th Alternative
67
67
matches the characters
67
literally (case sensitive)
6th Alternative
96
96
matches the characters
96
literally (case sensitive)
7th Alternative
88
88
matches the characters
88
literally (case sensitive)
8th Alternative
77
77
matches the characters
77
literally (case sensitive)
9th Alternative
65
10th Alternative
05
$
asserts position at the end of a line
Lines are delimited by \n
2nd Alternative
^
(
8
|
4
[
358
]
|
7
[
147
]
|
51
|
37
|
30
)
^
asserts position at start of a line
Lines are delimited by \n
2nd Capturing Group
(
8
|
4
[
358
]
|
7
[
147
]
|
51
|
37
|
30
)
1st Alternative
8
8
matches the character
8
literally (case sensitive)
2nd Alternative
4
[
358
]
4
matches the character
4
literally (case sensitive)
Match a single character present in the list below
[
358
]
358
matches a single character in the list
358
(case sensitive)
3rd Alternative
7
[
147
]
7
matches the character
7
literally (case sensitive)
Match a single character present in the list below
[
147
]
147
matches a single character in the list
147
(case sensitive)
4th Alternative
51
51
matches the characters
51
literally (case sensitive)
5th Alternative
37
37
matches the characters
37
literally (case sensitive)
6th Alternative
30
30
matches the characters
30
literally (case sensitive)
3rd Alternative
865
865
matches the characters
865
literally (case sensitive)
4th Alternative
349
349
matches the characters
349
literally (case sensitive)
5th Alternative
2
.
5
2
matches the character
2
literally (case sensitive)
.
matches any character (except for line terminators)
Line terminator(s) are \n
{5}
matches the previous token exactly
5
times
5
matches the character
5
literally (case sensitive)
6th Alternative
761
761
matches the characters
761
literally (case sensitive)
7th Alternative
74
[
348
]
74
matches the characters
74
literally (case sensitive)
Match a single character present in the list below
[
348
]
348
matches a single character in the list
348
(case sensitive)
8th Alternative
728
728
matches the characters
728
literally (case sensitive)
9th Alternative
811
811
matches the characters
811
literally (case sensitive)
10th Alternative
990
990
matches the characters
990
literally (case sensitive)
Global pattern flags
Match Information
Your regular expression does not match the subject string.
Quick Reference
Regular Expression
v2
Select Regex Version
No Match
r"
Change delimiter
"
gm
Set Regex Options
Copy to clipboard
Test String
Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.