Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 9,540 community submitted regex patterns...
0
Match all filenames in any URL including those with ANSI escaped characters (PHP version)
PCRE (PHP <7.3)
Match all filenames in any URL including those with ANSI escaped characters (PHP version).
Submitted by
The Fourth Bird
-
2 years ago
(Last modified 2 years ago)
0
Ipv4 with optional port
.NET 7.0 (C#)
ipv4 with optional port
Submitted by
anonymous
-
2 years ago
0
No leading or trailing spaces
.NET 7.0 (C#)
No leading or trailing spaces
Submitted by
anonymous
-
2 years ago
0
腾讯视频
PCRE (PHP <7.3)
从元素解析视频URL
Submitted by
anonymous
-
2 years ago
0
dateformat classique fr
PCRE (PHP <7.3)
12/10/1991
Submitted by
anonymous
-
2 years ago
0
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
-
2 years ago
0
时间
Java 8
时间
Submitted by
旧信
-
2 years ago
0
Wrap word in json with quotes
PCRE (PHP <7.3)
Wrap word in json with quotes
Submitted by
anonymous
-
2 years ago
0
模式测试
PCRE (PHP <7.3)
测试贪婪/非贪婪模式
Submitted by
anonymous
-
2 years ago
0
Nepali phone number regex
.NET 7.0 (C#)
(\+977)?9\d{8}
Submitted by
anonymous
-
2 years ago
0
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
-
2 years ago
0
Network Address
PCRE (PHP <7.3)
-
Submitted by
anonymous
-
2 years ago
0
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
-
2 years ago
0
Guid parser
.NET 7.0 (C#)
Guid parser
Submitted by
anonymous
-
2 years ago
0
XAML invert Grid.Column and Grid.Row to Grid.Row and Grid.Column
.NET 7.0 (C#)
Inverts the 2 attributes
Submitted by
anonymous
-
2 years ago
0
FullName_regex
Java 8
2135
Submitted by
anonymous
-
2 years ago
0
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
-
2 years ago
0
Cron Syntax
Java 8
This checks the syntax for CRON
Submitted by
Till Hummel
-
2 years ago
0
Bangladeshi Mobile and Telephone Number
Java 8
Matches with Bangladeshi Mobile and Telephone Numbers
Submitted by
kaziNAHIAN
-
2 years ago
0
test1
PCRE (PHP <7.3)
test1
Submitted by
anonymous
-
2 years ago
1
...
465
466
467
468
469
...
477
URL Validation
0
Regular Expression
.NET 7.0 (C#)
@"
^
(?=
(?<http>
(?:
https
?
:
\/\/
){1}
(?:
www
\.
)?
)?
)
(?
(?=
\k<http>
?
(?<ipaddr>
(?:
\d
{1,3}
\.
){3}
\d
{1,3}
(?:
\:
\d
{1,5}
)?
)
)
\k<http>
?
\k<ipaddr>
(?:
\.
[
\w
]
{1,9}
)?
|
\k<http>
(?:
[
\w
]
\.
?
){1,255}
\.
[
\w
]
{1,9}
)
(?:
\/
.
*
)?
$
"
gm
Open regex in editor
Description
Can be used to validate on URL's.
Submitted by
anonymous
-
a year ago