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
Community Patterns
Search among 11,700 community submitted regex patterns...
0
MR Title validation
Python
-
Submitted by
alkov
-
3 years ago
0
Class atribute content
PCRE (PHP <7.3)
regular expression to pull all css classes from a html file.
Submitted by
emed
-
3 years ago
0
Validate CSS Names
PCRE (PHP <7.3)
Validate CSS Names
Submitted by
emed
-
3 years ago
0
Yuque
Java 8
Yuque
Submitted by
anonymous
-
3 years ago
0
正则表达式查找"key":"value"对
PCRE (PHP <7.3)
正则表达式查找"key":"value"对
Submitted by
hippopie
-
3 years ago
0
VALIDATE DOMAIN:PORT ADDRESS IN PYTHON3
Python
Port is optional
Submitted by
Avaray
-
3 years ago
0
url
PCRE (PHP <7.3)
match url
Submitted by
anonymous
-
3 years ago
0
Match a phone number formatted using North American Numbering Plan (NANP)
Python
More Details: https://exercism.org/tracks/python/exercises/phone-number
Submitted by
Nishant Misra
-
3 years ago
(Last modified 3 years ago)
0
Commit linter
PCRE (PHP <7.3)
Regex to lint the first line of a commit
Submitted by
anonymous
-
3 years ago
0
Super Gene Voice of God
Python
Isolates lines to format from the popular Super Gene web novel
Submitted by
max
-
3 years ago
0
tablespoons
Python
fasdgasdes
Submitted by
asffgsadd
-
3 years ago
0
Grab ID
PCRE (PHP <7.3)
^
Submitted by
anonymous
-
3 years ago
0
Cron
PCRE (PHP <7.3)
fr
Submitted by
anonymous
-
3 years ago
0
Add string after matching 1st occurence, every line
Golang
Regex adding a string (here vs_) after 1st matching occurence (of reflectance_\d_).
Submitted by
Nikos Alexandris
-
3 years ago
0
YouTube video URL to video ID
Python
This regex can match with a valid YouTube link and retrieve the video ID in one of the four capturing groups. Unfortunately, I couldn't manage to use a single capturing group, but there is no difference between all of them.
Submitted by
Lyroy TheToad
-
3 years ago
(Last modified 3 years ago)
0
Smartling custom placeholders and liquid strategy
Java 8
Suggested Smartling custom placeholder regex to support liquid syntax as documented for Braze. Because default value cannot be extracted easily recommend rewrting the liquite to avoid using default filters.
Submitted by
Eric Negron
-
3 years ago
0
Regex Test on Slashes
Python
A regex test for filepaths.
Submitted by
anonymous
-
3 years ago
0
Email Validation Pattern
Java 8
Email Validation Pattern
Submitted by
Aslam Anver
-
3 years ago
0
Capture variable
Python
test
Submitted by
anonymous
-
3 years ago
0
Excel ABS, SUM, AVG
Python
test
Submitted by
anonymous
-
3 years ago
1
...
548
549
550
551
552
...
585
IPv4 private network address
0
Regular Expression
PCRE (PHP <7.3)
/
(?(DEFINE)
(?<bit>
[
0
-
1
]
[
0
-
9
]
{1,2}
|
2
[
0
-
4
]
[
0
-
9
]
|
25
[
0
-
5
]
)
)
(
10
\.
(
(?&bit)
\.
){2}
(
(?&bit)
)
)
|
(
172
\.
(
(
1
[
6
-
9
]
)
|
(
2
[
0
-
9
]
)
|
(
3
[
0
-
6
]
)
)
\.
(
(?&bit)
\.
?
+
){2}
)
|
(
192
\.
168
\.
(
(?&bit)
\.
?
+
){2}
)
/
x
Open regex in editor
Description
Check if the given string is a private address
Submitted by
Loïc Rameau
-
9 years ago