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 9,720 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
dateformat classique fr
PCRE (PHP <7.3)
12/10/1991
Submitted by
anonymous
-
a year ago
2022-06-28 15:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Fixed Email Regex (emailregex.com)
Java 8
An email regex that allows for capitals after the final dot (ie. TEST@GMAIL.COM)
Submitted by
anonymous
-
a year ago
2022-06-29 19:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
时间
Java 8
时间
Submitted by
旧信
-
a year ago
2022-06-30 08:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Wrap word in json with quotes
PCRE (PHP <7.3)
Wrap word in json with quotes
Submitted by
anonymous
-
a year ago
2022-07-01 15:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
模式测试
PCRE (PHP <7.3)
测试贪婪/非贪婪模式
Submitted by
anonymous
-
a year ago
2022-07-02 09:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Nepali phone number regex
.NET (C#)
(\+977)?9\d{8}
Submitted by
anonymous
-
a year ago
2022-07-02 10:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Replace all newlines (except double newlines) with spaces
PCRE (PHP <7.3)
In the first capturing group, match any character that isn't a newline, then, match a newline, then, in a non-capturing group, match a newline. Replace the the entire matched sequence with contents of the first capturing group followed by a space.
Submitted by
anonymous
-
a year ago
2022-07-03 11:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Network Address
PCRE (PHP <7.3)
-
Submitted by
anonymous
-
a year ago
2022-07-05 08:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Illegal characters for directory name
Java 8
Pattern matches to all illegal characters in directory name. Can be useful for normalizing the folder name before creating it
Submitted by
Vlad Yevtushenko
-
a year ago
2022-07-08 06:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Guid parser
.NET (C#)
Guid parser
Submitted by
anonymous
-
a year ago
2022-07-11 19:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
XAML invert Grid.Column and Grid.Row to Grid.Row and Grid.Column
.NET (C#)
Inverts the 2 attributes
Submitted by
anonymous
-
a year ago
2022-07-12 10:44
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
FullName_regex
Java 8
2135
Submitted by
anonymous
-
a year ago
2022-07-14 15:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
THE BEST RegEx for extracting filename without extension and extension from any path
PCRE (PHP <7.3)
THE BEST RegEx for extracting filename without extension and extension from any path
Submitted by
anonymous
-
a year ago
2022-07-16 08:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Cron Syntax
Java 8
This checks the syntax for CRON
Submitted by
Till Hummel
-
a year ago
2022-07-18 13:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Bangladeshi Mobile and Telephone Number
Java 8
Matches with Bangladeshi Mobile and Telephone Numbers
Submitted by
kaziNAHIAN
-
a year ago
2022-07-21 10:23
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
test1
PCRE (PHP <7.3)
test1
Submitted by
anonymous
-
a year ago
2022-07-23 23:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Letras, número e traço
Golang
Substitui tudo que não for letra, número e traço
Submitted by
anonymous
-
a year ago
2022-07-26 13:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
oracle_package_new_type
Golang
find/replace oracle package body new type
Submitted by
anonymous
-
a year ago
2022-07-27 07:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
nginx access regex loki
Golang
nginx access log regex
Submitted by
Lethisa Putri
-
a year ago
2022-07-28 11:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Intervelead 2 of 5 custas
PCRE (PHP <7.3)
Intervelead 2 of 5 custas
Submitted by
anonymous
-
a year ago
2022-07-29 19:10
1
...
471
472
473
474
475
476
477
...
486
DNS and lenght
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(?=
.
{3,256}
$
)
(
(?:
[
a
-
z0
-
9-
]
{2,65}
\.
)?
[
a
-
z0
-
9-
]
{2,256}
\.
[
a
-
z
\.
]
{2,6}
)
$
/
img
Open regex in editor
Description
Loading markdown...
Submitted by
Presta-Lab
-
7 years ago
2016-04-18 12:36