Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Sponsors
Community Patterns
Search among 17,100 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
RFC 4646
ECMAScript (JavaScript)
Matches RFC 4646 see https://www.rfc-editor.org/rfc/rfc4646.txt
Submitted by
reThink23
-
a year ago
2022-07-11 10:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex named groups
PCRE2 (PHP >=7.3)
Regex to group the elements by name
Submitted by
anonymous
-
a year ago
2022-07-11 10:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Reverse assignments statements c#
PCRE2 (PHP >=7.3)
Reverses any number of assignement statements in c See example Test before use.
Submitted by
Scover
-
a year ago
2022-07-11 13:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Minecraft Username
ECMAScript (JavaScript)
Regex that matches only valid Minecraft usernames
Submitted by
demented
-
a year ago
2022-07-11 13:44
(Last modified a year ago)
2022-07-11 13:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Author names
Python
Matches author names
Submitted by
anonymous
-
a year ago
2022-07-12 06:08
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
匹配带有后缀的数字
PCRE2 (PHP >=7.3)
0.12GB 0.12 224KB 224 1.14 1.14 23 23
Submitted by
anonymous
-
a year ago
2022-07-12 08:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
HGVS coding RNA substitution
PCRE2 (PHP >=7.3)
This Regex will match simple RNA substitution following HGVS nomenclature
Submitted by
anonymous
-
a year ago
2022-07-12 18:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find OTP
PCRE2 (PHP >=7.3)
Covers most of the cases of getting otp from email or mobile number
Submitted by
anonymous
-
a year ago
2022-07-13 04:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
url matcher
ECMAScript (JavaScript)
improvement of the regular expression seen in this meme: https://old.reddit.com/r/ProgrammerHumor/comments/vxhbku/a_regex_god/
Submitted by
Mitsunee
-
a year ago
2022-07-13 09:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
HGVS Frameshift protein
PCRE2 (PHP >=7.3)
Protein frameshift hgvs
Submitted by
anonymous
-
a year ago
2022-07-13 17:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
deetct href and src in html files for vs code
PCRE2 (PHP >=7.3)
deetct href= and src= in html files for vs code
Submitted by
anonymous
-
a year ago
2022-07-13 18:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
beginning of new file / very start of the first line
PCRE2 (PHP >=7.3)
beginning of new file / very start of the first line
Submitted by
rasreeee
-
a year ago
2022-07-14 04:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Minecraft Command Getter
ECMAScript (JavaScript)
A "detector" thing
Submitted by
MeowcaTheoRange
-
a year ago
2022-07-14 15:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
MB - XE Currency connector
PCRE2 (PHP >=7.3)
Martin Bencher - XE Currency connector
Submitted by
Ghita
-
a year ago
2022-07-14 15:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
MSE Qualifier Regex
PCRE2 (PHP >=7.3)
Regular Expression for getting a Qualifier as defined by MapleMBSE
Submitted by
anonymous
-
a year ago
2022-07-15 09:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
IP (v4 and v6) check
ECMAScript (JavaScript)
This regexp match an ip address in v6 or v4 form. Included V6 compact form (:: in place of :0000:). Doesn't matches addresses range or mixed format (like y:y:y:y:y:y:x.x.x.x)
Submitted by
Emanuele Benedetti
-
a year ago
2022-07-15 09:53
(Last modified a year ago)
2022-07-15 11:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Between brackets
PCRE2 (PHP >=7.3)
Get all values between brackets
Submitted by
aldo-f
-
a year ago
2022-07-15 12:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Title RegEx
PCRE2 (PHP >=7.3)
Checks named titles like Mr., Mrs, Ms. prefixed to names
Submitted by
anonymous
-
a year ago
2022-07-15 13:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Checker for specific key
PCRE2 (PHP >=7.3)
Checker for specific key
Submitted by
anonymous
-
a year ago
2022-07-15 14:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
test
ECMAScript (JavaScript)
o
Submitted by
k
-
a year ago
2022-07-15 16:10
1
...
786
787
788
789
790
791
792
...
855
Android Package REgex
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Python
r"
(
[
a
-
z
]
+
\.
){2,}
[
a
-
z
]
+
"
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-08-17 14:49