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 5,720 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Normal URL
PCRE2 (PHP >=7.3)
Validates that all necessary parts of a "normal" domain are there (scheme, subdomain, secondary-level domain, top-level domain) and allows for additional subdirectories. Does not work for options like "mailto: example@email.com" or anything that does not stick to a typical web address URL.
Submitted by
Alexa J.
-
a year ago
2022-05-24 13:08
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
213
PCRE2 (PHP >=7.3)
12312
Submitted by
anonymous
-
a year ago
2022-05-24 08:24
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
1
PCRE2 (PHP >=7.3)
1
Submitted by
anonymous
-
a year ago
2022-05-24 08:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Drealth
PCRE2 (PHP >=7.3)
just a normal text to the drealth emojis
Submitted by
NobreHD
-
a year ago
2022-05-22 14:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Mez regex #3
ECMAScript (JavaScript)
This is the #3 regex used in Mez
Submitted by
anonymous
-
a year ago
2022-05-21 11:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Bracket finder ( Mez regex #2 )
ECMAScript (JavaScript)
This is the #2 regex used in Mez
Submitted by
anonymous
-
a year ago
2022-05-21 09:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Mez regex #1
ECMAScript (JavaScript)
This is the #1 regex used in Mez
Submitted by
anonymous
-
a year ago
2022-05-21 09:08
(Last modified a year ago)
2022-05-21 09:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Select links comment
PCRE2 (PHP >=7.3)
I have a lot of code that looks like this: Sometimes I wanna search for it. Helps me find instances of it in my code.
Submitted by
charliecalvert
-
a year ago
2022-05-20 16:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
find between 2 strings
PCRE2 (PHP >=7.3)
find between 2 strings
Submitted by
anonymous
-
a year ago
2022-05-20 15:47
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Replace anything not a letter or a hyphen
PCRE2 (PHP >=7.3)
Make folder/url safe use with eg sed: echo 'My fancy $thing' | sed 's//-/g' results in My-fancy--thing
Submitted by
anonymous
-
a year ago
2022-05-20 15:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Notes in markdown with underscore
ECMAScript (JavaScript)
I use it to find mark down note that I wrote with an _when I meant to use an *
Submitted by
charliecalvert
-
a year ago
2022-05-19 22:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
markdown headings with underscore
PCRE2 (PHP >=7.3)
it still makes a few false positives
Submitted by
charliecalvert
-
a year ago
2022-05-19 22:13
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Convert numbers-only YYYYMMDD date to dash delineated YYYY-MM-DD
PCRE2 (PHP >=7.3)
Convert numbers-only YYYYMMDD date to dash delineated YYYY-MM-DD
Submitted by
anonymous
-
a year ago
2022-05-19 21:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Jerem
PCRE2 (PHP >=7.3)
To match specific name based on season code
Submitted by
anonymous
-
a year ago
2022-05-19 15:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
JavaScript Function w/ Recusive Parenthasis JavaScript Function w/ Recusive Parenthasis JavaScript Function w/ Recusive Parenthasis
PCRE2 (PHP >=7.3)
Regex that allows the following: foo(bar).qax(foo(bar).qax(foo(bar).qax(foo(bar).qax()))) Its sorta hard to make out whats going on, so I will just say it: ...
Submitted by
jD3V
-
a year ago
2022-05-18 14:45
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match HMTL/WXML tag and class
ECMAScript (JavaScript)
Match HMTL/WXML tag and class
Submitted by
ice breaker
-
a year ago
2022-05-18 05:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
.csv data conversion for a test case
PCRE2 (PHP >=7.3)
from "['a']" to "[""a""]"
Submitted by
anonymous
-
a year ago
2022-05-17 22:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
FIrst or Last Name
ECMAScript (JavaScript)
Validates a first or last name of an user. Positives: Anna Anna-Louisa Anna Louisa...
Submitted by
Iris
-
a year ago
2022-05-17 09:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
UA phone number
ECMAScript (JavaScript)
check ua phone number
Submitted by
anonymous
-
a year ago
2022-05-16 20:23
(Last modified a year ago)
2022-05-16 20:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
track OM cash out
PCRE2 (PHP >=7.3)
cash out tracker
Submitted by
anonymous
-
a year ago
2022-05-16 16:49
1
...
77
78
79
80
81
82
83
...
286
match first lowercase letter of every word
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
[
a
-
z
]
{1}
|
(?<=
\s
)
[
a
-
z
]
{1}
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
2 years ago
2022-02-22 17:42
(Last modified 2 years ago)
2022-02-22 17:42