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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 18,040 community submitted regex patterns...
0
Toast Check case status
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Go Gmail Date Reply Line
Golang
no description available
Submitted by
anonymous
-
6 years ago
0
Email Reply Line
Golang
no description available
Submitted by
anonymous
-
6 years ago
0
new url
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Toast Premium support try 1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Look Ahead - Dont include anchor urls
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Host and optional www. subdomain matching
PCRE (PHP <7.3)
matches the http portion of a url, both http:// and https://, and also matches the www. portion if that is included.
Submitted by
anonymous
-
6 years ago
0
Inline and comment blocks
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
0
substring
PCRE (PHP <7.3)
substring
Submitted by
anonymous
-
6 years ago
0
Cell number check
ECMAScript (JavaScript)
Check if first char is 0 followed by 9 digits
Submitted by
anonymous
-
6 years ago
0
Consecutive check
ECMAScript (JavaScript)
Check if there's consecutive chars
Submitted by
anonymous
-
6 years ago
0
11
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
REgex OR
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
0
Regex AND
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
0
Regex no repeats only numbers
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
0
REGEX to parse IIS7 Log File into FluentD
PCRE (PHP <7.3)
This regex parses the entire line of the IIS log files (without detail on the AgentID) for usage into FluentD. The original was writen by Juan Carniglia. Link I've updated to move the spaces out of the capture, and to make the csmethod specific to GET/POST/etc.
Submitted by
Juan Carniglia
-
6 years ago
0
Find specific document cookie value
ECMAScript (JavaScript)
Finds the value of a specific cookie. Use it in in this format: alert(document.cookie.replace((?:(?:^|.;\s)test2\s\=\s().$)|^.*$)) The above code will find the value of the cookie called test2 and display it in a alert dialog.
Submitted by
anonymous
-
6 years ago
0
horizontal whitespaces
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Educadhoc
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
GitHub and GitLab URL detection
ECMAScript (JavaScript)
Detects github and gitlab urls and gives back the domain (either github.com or gitlab.com) and the author + repo name
Submitted by
anonymous
-
6 years ago
1
...
133
134
135
136
137
...
902
Community Library Entry
0
Regular Expression
.NET 7.0 (C#)
@"
^
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
(?:
:
(
\d
|
[
1
-
9
]
\d
{1,3}
|
[
1
-
5
]
\d
{4}
|
6
[
0
-
4
]
\d
{3}
|
65
[
0
-
4
]
\d
{2}
|
655
[
0
-
2
]
\d
|
6553
[
0
-
5
]
)
)?
$
"
Open regex in editor
Description
ipv4 with optional port
Submitted by
anonymous
-
2 years ago