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 9,620 community submitted regex patterns...
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Challenge: Create regular expression that matches the following urls
PCRE (PHP <7.3)
Note the 2 lines separated urls. These should NOT match
Submitted by
kostas trichas
-
9 years ago
2014-09-19 14:30
2
4 upvotes, 2 downvotes (score 30%) (You must be signed in to vote)
Regex Capture String
PCRE (PHP <7.3)
Capture out Parts using regular expressions
Submitted by
Brandon
-
9 years ago
2014-09-18 20:06
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
DNS SOA
PCRE (PHP <7.3)
oneliner SOA record matching regexp. like "ns1.domain.com.ge. mail.ns1.domain.com.ge. (2014061613 3600 600 604800 1800 )" without @ IN SOA in begging, usefull when implementing something like DNS GUI.
Submitted by
Nick Chkhikvishvili
-
9 years ago
2014-09-18 16:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match date from calendar as string
PCRE (PHP <7.3)
Match date from calendar as string
Submitted by
anonymous
-
9 years ago
2014-09-17 16:57
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-09-16 20:03
18
119 upvotes, 101 downvotes (score 47.5%) (You must be signed in to vote)
Email validation
PCRE (PHP <7.3)
no description available
Submitted by
tutsplus.com
-
9 years ago
2014-09-16 13:45
0
8 upvotes, 8 downvotes (score 28%) (You must be signed in to vote)
Match all html tags
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
9 years ago
2014-09-16 12:40
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Get all HTML tag names
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
9 years ago
2014-09-16 12:37
1
5 upvotes, 4 downvotes (score 26.7%) (You must be signed in to vote)
Parse JSON key value
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
9 years ago
2014-09-16 12:31
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
Parse JSON key value pair
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
9 years ago
2014-09-16 12:22
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
url GET parameters
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-09-16 12:07
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
t
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-09-16 10:35
3
4 upvotes, 1 downvotes (score 37.6%) (You must be signed in to vote)
Get URL parameters
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-09-16 08:46
8
11 upvotes, 3 downvotes (score 52.4%) (You must be signed in to vote)
Extract url GET parameters
PCRE (PHP <7.3)
Returns key/value pair of a url. Also works with google fonts which has additional information
Submitted by
anonymous
-
9 years ago
2014-09-16 08:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract google fonts key, value, options
PCRE (PHP <7.3)
This regular expression is used to extract google font information from the embeded url
Submitted by
anonymous
-
9 years ago
2014-09-16 08:35
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
parse images
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-09-15 17:11
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Match all attributes/values of html document
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-09-15 14:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CAS error regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-09-15 10:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find all drives not the primary logical
PCRE (PHP <7.3)
no description available
Submitted by
Cm
-
9 years ago
2014-09-14 15:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
grub options matching
PCRE (PHP <7.3)
Trying to match grub options in capture groups, some of which are known
Submitted by
cnf
-
9 years ago
2014-09-12 16:54
1
...
463
464
465
466
467
468
469
...
481
URL Validator
12
75 upvotes, 63 downvotes (score 46%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(
(
(
ftp
|
http
|
https
)
:
\/\/
)
|
(
\/
)
|
(
..
\/
)
)
(
\w
+
:
{0,1}
\w
*
@
)?
(
\S
+
)
(
:
[
0
-
9
]
+
)?
(
\/
|
\/
(
[
\w
#!:.?+=&%@!
\-\/
]
)
)?
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
9 years ago
2014-09-24 08:41