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
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
SML Structure
This i suggest match the sml structure. Use it wisely, I made it just for fun!
Submitted by
Shoaiyb Sysa
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Twitch Clickable URL Regex
I think this is the regex that Twitch uses to determine what is a clickable link on chat.
Submitted by
emongev
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
0x36210C88C438001A616687456978Aa4d3AdCba35
- /^(?:[\+-]?\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?:T\s\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[\.,]\d+(?!:))?)?(?:\2[0-5]\d(?:[\.,]\d+)?)?(?:[zZ]|(?:[\+-])(?:[01]\d|2[0-3]):?(?:[0...
Submitted by
Nate☬158⚈̥̥̥̥̥̀ᴗ✯0x36210C88C438001A616687456978Aa4d3AdCba35
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
0x36210C88C438001A616687456978Aa4d3AdCba35
/^(?:[\+-]?\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?:T\s\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[\.,]\d+(?!:))?)?(?:\2[0-5]\d(?:[\.,]\d+)?)?(?:[zZ]|(?:[\+-])(?:[01]\d|2[0-3]):?(?:[0-5...
Submitted by
Nate☬158⚈̥̥̥̥̥̀ᴗ✯0x36210C88C438001A616687456978Aa4d3AdCba35
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
java
Match 1 or more Jira issueKey in Wiki Markup
Jira Wiki Markup content can have multiple issueKeys and repeat the same key up to three times. There are also random forward slash characters in the content and text that may look like a valid key, but is not.
Submitted by
Hank
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Numeric
Regex to get any numeric string
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
ISO 8601 date time validation
Ref: https://rgxdb.com/r/526K7G5W
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
java
Email
Test e-amil
Submitted by
uk
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
java
Русские фамилии
Почти все известные фамилии
Submitted by
Arthur
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
java
Армянские фамилии
Все существовавшие армянские фамилии
Submitted by
Arthur
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Date match on multiple formats
Date match on multiple formats
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
test
Testing for sharing
Submitted by
me
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
OpenVPN access log
This regular expression can be used in SIEM or scripts to extract special fields such as:
Submitted by
EskiSlav
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Regex for Nigerian Phone Numbers
Regex for Nigerian Phone Numbers
Submitted by
koderant
-
2 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Parser for GPG search-key output
Record the output of the batch gpg --search-keys commands into variables. For example, get the public key ids or those with *.amazon.com email addresses: pubkeyids=$(gpg --batch --keyserver hkp://keyserver.ubuntu.com --search-keys amazon.com 2>&1 | grep -Po '\d+\sbit\s\S+\skey\s+' | cut -d' ' -...
Submitted by
mavaddat
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
switchover
regex to split the following data into columns: 2021-06-15 10:41:04 SMM MANUAL MANUAL 6 7 manually switch OK 2021-09-03 14:32:01 UPS SW FAIL SW RESTART 8 - Error cnt: 1;err code:DAEMON_ERR_RESTART, param: 2021-09-03 14:35:04 UPS SW FAIL SW RESTART ...
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
MongoDB Object ID validation
24 character hex string matching MongoDB Object ID format
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
拼音正则匹配
拼音正则匹配
Submitted by
anonymous
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
JSON trailing comma match
Don't rely on this for any serious business, though.
Submitted by
Basix
-
2 years ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Keep only domain and protocol it present.
Keep only domain and protocol it present.
Submitted by
EcoTechie
-
2 years ago
1
...
77
78
79
80
81
82
83
...
571
Email Verification
Vote
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
Regular Expression
pcre2
/
(
(
[^
<>()
\[\]\\
.,;:
\s
+@"
]
+
(
\.
[^
<>()
\[\]\\
.,;:
\s
@"
]
+
)*
)
|
(
"
.
+
"
)
)
@
(
(
\[
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
]
)
|
(
(
[
a
-
zA
-
Z
\-
0
-
9
]
+
\.
)+
[
a
-
zA
-
Z
]
{2,}
)
)
/
mg
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
- 2 years ago