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 15,520 community submitted regex patterns...
0
Extract /24 (IPv4) or /64 (IPv6)
PCRE (PHP <7.3)
This extracts the first three octets of an IPv4 address, or the first half of an IPv6 address. This may be suitable for classifying addresses by address groups.
Submitted by
anonymous
-
7 years ago
0
Lb4 1f
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
C# class name in file
PCRE (PHP <7.3)
no description available
Submitted by
flexford
-
7 years ago
0
Lb4 1d
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Img link to div
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Find/replace with 1 group capture
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
0
Search mysql field for word beginning with until all withspace
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Initials matcher
PCRE (PHP <7.3)
Matches "J.M.D", but will not match "Jordy". Only matches initials
Submitted by
anonymous
-
7 years ago
0
Dutch postalcode validator
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Lb4 1a
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Milepost
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
Lb4 date
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
0
kube_log_regx3
PCRE (PHP <7.3)
This regx is totally cover whole of the log. Pars such a log: {"log":"I1219 13:32:01.389913 1 server.go:114] Version: v1.8.0\n","stream":"stderr","time":"2017-12-19T13:32:01.390360472Z"}
Submitted by
Alireza
-
7 years ago
0
kube_log_regx3
PCRE (PHP <7.3)
Pars such a log: {"log":"I1219 13:32:01.389913 1 server.go:114] Version: v1.8.0\n","stream":"stderr","time":"2017-12-19T13:32:01.390360472Z"}
Submitted by
Alireza
-
7 years ago
0
kube_log_regx2
PCRE (PHP <7.3)
Pars such a log: {"log":"I1219 13:32:01.389913 1 server.go:114] Version: v1.8.0\n","stream":"stderr","time":"2017-12-19T13:32:01.390360472Z"}
Submitted by
Alireza
-
7 years ago
0
kube_log_regx
PCRE (PHP <7.3)
Pars such a log: {"log":"I1219 13:32:01.389913 1 server.go:114] Version: v1.8.0\n","stream":"stderr","time":"2017-12-19T13:32:01.390360472Z"}
Submitted by
Alireza
-
7 years ago
0
etcd_log_regx
PCRE (PHP <7.3)
Pars such a log: {"log":"2017-12-19 13:32:01.280700 I | etcdmain: etcd Version: 3.0.17\n","stream":"stderr","time":"2017-12-19T13:32:01.281026986Z"}
Submitted by
Alireza
-
7 years ago
0
Data URL Extraction
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
color-price-count
PCRE (PHP <7.3)
no description available
Submitted by
By me
-
7 years ago
0
syslog-ng checked
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
...
459
460
461
462
463
...
776
Community Library Entry
107
Regular Expression
ECMAScript (JavaScript)
/
^
[
\t
]
+
|
[
\t
]
+
$
/
gm
Open regex in editor
Description
Trim leading and trailing whitespace from a string.
Submitted by
fp
-
11 years ago
(Last modified 3 months ago)