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 13,760 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Dutch zip (postcode)
PCRE (PHP <7.3)
Regex to validate a Dutch zip (postcode)
Submitted by
Anne Douwe Bouma
-
7 years ago
2017-03-27 09:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Java File Header
PCRE (PHP <7.3)
Java File Header
Submitted by
Sathish Kumar
-
7 years ago
2017-03-27 09:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
@Extract @Chinese (Han) Text Embedded in English Text @KM
PCRE (PHP <7.3)
Used for this KM Macro: How can I divide chinese part and english part into two part in clipboard? 2017-03-26 ...
Submitted by
JMichaelTX
-
7 years ago
2017-03-27 03:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
RFC 3986 IPv4 Validation
PCRE (PHP <7.3)
IPv4 Validation to RFC 3986 found at https://tools.ietf.org/html/rfc3986#section-1.1.1.
Submitted by
anonymous
-
7 years ago
2017-03-25 23:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
release version parser
Python
no description available
Submitted by
anonymous
-
7 years ago
2017-03-25 21:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
1
PCRE (PHP <7.3)
1
Submitted by
anonymous
-
7 years ago
2017-03-25 10:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
auditd
PCRE (PHP <7.3)
extract useful information from audit log
Submitted by
anonymous
-
7 years ago
2017-03-24 17:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Rally regexes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-03-24 13:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ID Card extraction
PCRE (PHP <7.3)
Extract an ID card from a body of text
Submitted by
anonymous
-
7 years ago
2017-03-23 20:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
grappen1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-03-23 18:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find Basic Auth in URL (without protocol)
PCRE (PHP <7.3)
no description available
Submitted by
Aaron Murray
-
7 years ago
2017-03-23 17:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Trailing slashes
PCRE (PHP <7.3)
Select any number of forward slashes that appear at the end of a string.
Submitted by
Aaron Murray
-
7 years ago
2017-03-23 17:44
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
List Of Countries
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-03-22 18:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
PGT Billing
PCRE (PHP <7.3)
no description available
Submitted by
BM
-
7 years ago
2017-03-22 18:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Lat Long
PCRE (PHP <7.3)
Lat long in format matching the following: DDMM/DDDMM DDMMSS/DDDMMSS DDMMSS.S/DDDMMSS.S With or without NSEW, colons or +- in front.
Submitted by
anonymous
-
7 years ago
2017-03-22 17:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Lat Long DD*MM'SS.S"
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-03-22 17:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
amavis lines
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-03-22 16:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
crontab entry for hour
Python
Example 0,2,3,5-6,9-23/2
Submitted by
anonymous
-
7 years ago
2017-03-22 12:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Valid Cusip
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
2017-03-21 21:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Grab image file from url with query variables /
PCRE (PHP <7.3)
no description available
Submitted by
LinzardB
-
7 years ago
2017-03-21 21:19
1
...
453
454
455
456
457
458
459
...
688
url - extrakce hostname
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
https
?
:
\/\/
(
(
[^
\/\?
#
\.
]
+
\.
|)
(
[^
\/\?
#
\.
]
+
)
\.
(
[^
\/\?
#
\.
]
+
)
)
(
|
\/
.
*
|
\?
.
*
|
#
.
*
)
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
7 years ago
2017-02-14 15:12