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
Relevance
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 1,020 community submitted regex patterns...
36
best youtube id match ( iframe embed replace ready )
Recommended
PCRE (PHP <7.3)
MATCH ANY YOUTUBE ID author : mi-ca v1.0 – 2017.03.08 This Regex match any youtube url and grab the ID. Embed ready √ --...
Submitted by
mi-ca.ch
-
6 years ago
19
Get path from any text
Recommended
PCRE2 (PHP >=7.3)
Get path (windows style) from any type of text (error message, e-mail corps ...), quoted or not. THIS IS THE SINGLE LINE VERSION ! If you want understand how it work or edit it, go https://regex101.com/r/7o2fyy Relative path are not supported...
Submitted by
nitrateag
-
3 years ago
(Last modified 2 years ago)
12
Find Reddit Threads
Python
Simply searches for the thread-id in any kind of valid reddit-URL.
Submitted by
Mio
-
10 years ago
10
extract subdomain(if available) or domain from URL
Python
This regex should extract the subdomain, if any, or the domain, if no subdomain is used, from an arbitrary URL
Submitted by
trevi@twanda.com
-
9 years ago
11
RFC 3987 compliant URL regex
ECMAScript (JavaScript)
This is a JavaScript port of the URL regex from http://stackoverflow.com/a/190405/384062 that includes a bug fix and some optimization. Mathias Bynens's Regenerate was used to convert unicode escapes. Bug fix: Eliminated stray | falsely allowing querystring to contain | ...
Submitted by
Hans Meyer
-
10 years ago
12
Full url parse, domain, path, params
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
5
import url image
Python
import url image
Submitted by
bartimeys
-
10 years ago
5
Match any url in text or html (http, https)
PCRE2 (PHP >=7.3)
Match any url in text or html (http, https)
Submitted by
Jérémy Munsch
-
4 years ago
9
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
-
11 years ago
9
youtube url match
ECMAScript (JavaScript)
extract video id, index, play list id from youtube url
Submitted by
anonymous
-
10 years ago
7
Max - URL Extract
PCRE (PHP <7.3)
no description available
Submitted by
Ayush
-
9 years ago
41
URL regexp
PCRE (PHP <7.3)
A quite neat regular expression for URLs, e-mails..., I found on Matthew O'Riordan's blog.
Submitted by
Matthew O'Riordan
-
13 years ago
5
youtube url match
ECMAScript (JavaScript)
extract video id, index, play list id from youtube URL
Submitted by
anonymous
-
10 years ago
16
http url regex
ECMAScript (JavaScript)
general purpose HTTP URL regex
Submitted by
Miguel Castillo @manchagnu
-
10 years ago
13
URL Validator
PCRE (PHP <7.3)
Validates - URLs with schemes - http, https and ftp Relative URL starting with / and ../
Submitted by
anonymous
-
11 years ago
9
Extract Protocol, URL, URL Path, get parameters and hash from URI
Python
This is simplified from my last submission.
Submitted by
Dale O'Brien
-
11 years ago
7
split URL into location-resource-params (JavaScript)
ECMAScript (JavaScript)
Extract resource location, name and query parameters from a URL (JavaScript version)
Submitted by
cebence
-
11 years ago
3
Find URLs in markdown where the lines have been wrapped
Python
no description available
Submitted by
anonymous
-
11 years ago
3
URL with matching categories
PCRE (PHP <7.3)
Finds the protocol, subdomain, ((domain, extension)/ipaddress), port, filepath (split in path and filename), the route and the query string.
Submitted by
fps
-
11 years ago
3
Match a URL from a text message
ECMAScript (JavaScript)
I use this to match the first url present in a text message.
Submitted by
anonymous
-
10 years ago
1
2
3
...
51