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 2,740 community submitted regex patterns...
2
Mobile Number Regex
PCRE2 (PHP >=7.3)
The following regex validates international mobile numbers
Submitted by
anonymous
-
3 years ago
2
Email Extractor
PCRE2 (PHP >=7.3)
([a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9_-]+)
Submitted by
Kashif
-
3 years ago
2
Html tag parser
PCRE2 (PHP >=7.3)
This regex will help you to parse html tag. Example ...
Submitted by
denchiklut
-
3 years ago
2
Check Phone numbers
PCRE2 (PHP >=7.3)
Other patterns
Submitted by
https://joserobinson.com
-
3 years ago
2
Match Javanese Script Syllable
PCRE2 (PHP >=7.3)
Match any syllable based on javanese script unicode
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
2
RFC1918 - Private IPv4 addresses
PCRE2 (PHP >=7.3)
Validate a given IP v4 address against all three defined Private IPv4 Subnets as statet in RFC1918 10.0.0.0/8 172.16.0.0/20 192.168.0.0/16 ...
Submitted by
0100101101001
-
3 years ago
2
Grabify URL Detector
PCRE2 (PHP >=7.3)
Detects any Grabify IP tracker links
Submitted by
ShadowNox
-
3 years ago
2
UUID 4
PCRE2 (PHP >=7.3)
Detects any UUID 4 strings
Submitted by
ShadowNox
-
3 years ago
2
GitHub bare url to org/repo Markdown
PCRE2 (PHP >=7.3)
Convert a bare url into organization/repo format in a Markdown link.
Submitted by
anonymous
-
3 years ago
2
Delete hour range
PCRE2 (PHP >=7.3)
Select duplicate a.m. - p.m range
Submitted by
profeivan
-
3 years ago
2
Pattern for usual email address
PCRE2 (PHP >=7.3)
Intentionally leaves out weird stuff such as IPV4 or IPV6 for the domain part and quoted usernames with invalid chars in the addressee part. Handles internationalized domains with soft validation (only structural matching) and blocks domain parts starting or ending with dashes or containing double d...
Submitted by
Victor Schröder
-
3 years ago
2
Max 30 Characters excluding brackets
PCRE2 (PHP >=7.3)
This is a simple regex for 30 characters limit excluding brackets
Submitted by
jusuchin85
-
3 years ago
(Last modified 3 years ago)
2
Extract Rapidgator Links from a HTML web page (Works for rg.to and rapidgator.net)
PCRE2 (PHP >=7.3)
Click "open regex in editor" to open regex. Open a webpage containing Rapidgator Links - Either rg.to or rapidgator.net Right-click anywhere on the page and select "view page source" Copy the HTML markup containing the Rapidgator links to regex101.com Paste the HTML markup and set mode to match Loca...
Submitted by
SmartCoder
-
2 years ago
2
Detect RGB/RGBA colors in CSS
PCRE2 (PHP >=7.3)
JS function to convert RGB(A) to HEX color for single values: /** @param {string} color the RGB(A) color @return {string} the HEX color */ function rgba2hex(color)...
Submitted by
WinterSilence
-
2 years ago
2
US Social Security Number
PCRE2 (PHP >=7.3)
Finds a number that is 9 digits long. Can have spaces or hyphens in between the numbers and will still be found
Submitted by
anonymous
-
2 years ago
2
Dice-Throwing notation
PCRE2 (PHP >=7.3)
You can express the required dice-throwing as usual: 1d10, 2d6, 3d8... The first part (dice number) is mandatory. So, notations like "D10" are not computed, and they must be written as 1d10 The dice number may be expressed as [number]o[number]. For example: 1o3d10. That will mark to implement a Gaus...
Submitted by
Hermes
-
2 years ago
(Last modified 2 years ago)
2
HTML Minifier
PCRE2 (PHP >=7.3)
https://stackoverflow.com/questions/5312349/minifying-final-html-output-using-regular-expressions-with-codeigniter Thanks to @Alan Moore
Submitted by
anonymous
-
2 years ago
2
Parse conventional commits message
PCRE2 (PHP >=7.3)
https://conventionalcommits.org Parses commits like type(scope)!: subject
Submitted by
Alex Kinnee
-
2 years ago
2
Email with gmail+ implementation
PCRE2 (PHP >=7.3)
Regex of email with ability to add gmail's +example system example: root email = user@gmail.com gmail+ = user+extra@gmail.com
Submitted by
brad
-
2 years ago
2
Palindromes
PCRE2 (PHP >=7.3)
Matches palindromes: arbitrary length ignores non-significant characters (spaces, ponctuation) ignores accents, provided the text is NFD-normalized recursive palindromes (e.g. "a été à"): either match the longest one ("a été à") or the nested ones individually ("a", "été", "à") (see comment)
Submitted by
NicolaF_
-
2 years ago
(Last modified 2 years ago)
1
2
3
4
...
137
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
http
(
s
?
)
:
\/\/
)?
(
(
(
www
\.
)?
+
[
a
-
zA
-
Z0
-
9
\.\-\_
]
+
(
\.
[
a
-
zA
-
Z
]
{2,3}
)+
)
(
:
[
0
-
9
]
{1,5}
)?
|
(
\b
(?:
(?:
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\.
){3}
(?:
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
[
01
]
?
[
0
-
9
]
[
0
-
9
]
?
)
\b
)
)
(
:
[
0
-
9
]
{1,5}
)?
(
\/
[
a
-
zA
-
Z0
-
9
\_\-
\s
\.\/\?\%\#\&\=
]
*
)?
$
/
gm
Open regex in editor
Description
Valid Link/URL for Event Callbacks
Submitted by
tim-engnz
-
2 years ago