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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 13,780 community submitted regex patterns...
1
Full name split
PCRE2 (PHP >=7.3)
It allows to divide the full name into its three parts
Submitted by
anonymous
-
10 months ago
1
DSL tags missing closing pair tags
PCRE2 (PHP >=7.3)
Checking whether all [b] tag pairs are present in *.dsl text
Submitted by
anonymous
-
10 months ago
1
Capturing elements inside square brackets
PCRE2 (PHP >=7.3)
Using regex, you can use a pattern that takes three comma-separated elements and then extracts the third element from inside the brackets.
Submitted by
anonymous
-
10 months ago
1
git url dissecting
PCRE2 (PHP >=7.3)
the various parts of a git url are dissected and made available in the respective capture groups
Submitted by
anonymous
-
10 months ago
1
Match all Tailwind CSS classes prefixed with dark:
PCRE2 (PHP >=7.3)
A simple expression for removing Tailwind CSS classes that are prefixed with dark: from your HTML. Can be easily changed to remove any other classes with a specific prefix. I made this so I could easily remove dark mode from Tailwind CSS components I find online.
Submitted by
hexrw
-
10 months ago
1
One letter in row
PCRE2 (PHP >=7.3)
([a-z])(?!.*\1)
Submitted by
anonymous
-
10 months ago
1
Patron de Blogs
PCRE2 (PHP >=7.3)
Patron para la busqueda de URLS En sitemaps de blogs
Submitted by
anonymous
-
10 months ago
1
Opportunity Close
PCRE (PHP <7.3)
Prepare batch job for opportunity close
Submitted by
wistlo
-
10 months ago
1
Match ONLY valid URLs!
PCRE2 (PHP >=7.3)
Match all valid URLs Examples: Valid URLs: https://www.example.com/ http://subdomain.example.net/ https://www.subdomain.example.com.uk/params...
Submitted by
Henriii102
-
10 months ago
(Last modified 6 months ago)
1
SGML & XML
PCRE2 (PHP >=7.3)
Match SGML and XML elements.
Submitted by
anonymous
-
10 months ago
1
Hexadecimal Colour Code Finder
PCRE2 (PHP >=7.3)
This regex will find any hexadecimal colour code, anywhere in your string Support for: mini 3 letter codes normal 6 letter codes back to back codes
Submitted by
anonymous
-
10 months ago
1
Find all words between #text#
PCRE2 (PHP >=7.3)
Finds all occurence in a plain text / html text where a text is between 2 hashtags : #text#
Submitted by
Kervan Mazuy
-
10 months ago
1
Find software version in single line text entry
PCRE2 (PHP >=7.3)
This will look for a software version within a single line text entry.
Submitted by
Bill Alexander
-
10 months ago
1
select report
PCRE2 (PHP >=7.3)
select report
Submitted by
H.Nasirii
-
10 months ago
1
números html
PCRE2 (PHP >=7.3)
numeros
Submitted by
anonymous
-
10 months ago
1
Remove specific parameter from URL
PCRE (PHP <7.3)
This pattern finds a parameter (sst) key + value in a GET request URL. When replaced with an empty string, effectively removes the parameter. Works with both full URLs and isolated query strings. Works in PCRE and PCRE2. Full use case: if (isset($_GET["sst"])) { // validate...
Submitted by
Martin Holt
-
10 months ago
(Last modified 10 months ago)
1
Correo Electrónico
PCRE2 (PHP >=7.3)
Validar un correo electrónico con una expresión regular básica
Submitted by
anonymous
-
10 months ago
1
amp;
PCRE2 (PHP >=7.3)
subtitui
Submitted by
seidao
-
10 months ago
1
Discord Token Regex
PCRE2 (PHP >=7.3)
Regex that will verify if a valid token has been provided. This comes directly from Discord's source.
Submitted by
Discord
-
10 months ago
1
TV/Movie
PCRE2 (PHP >=7.3)
This is my first attempt so umm ya .. Grab Filename: Fname Season: se Episode: ep Year: yr
Submitted by
TheMorgue
-
10 months ago
(Last modified 10 months ago)
1
...
213
214
215
216
217
...
689
URL Domain Extractor
1
Regular Expression
ECMAScript (JavaScript)
/
^
(?:
https
?
:
\/\/
)?
(?:
[^
@
\/
\n
]
+
@
)?
(?:
www
\.
)?
(
[^
:
\/
?
\n
]
+
)
/
igm
Open regex in editor
Description
Extracts and returns the domain name from a given URL.
Submitted by
anonymous
-
3 years ago