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 11,660 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get Decathlon Product URL
PCRE2 (PHP >=7.3)
Match decathlon product detail url
Submitted by
anonymous
-
2 months ago
2023-09-18 12:59
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
HTML5 email validation
PCRE2 (PHP >=7.3)
Source: https://html.spec.whatwg.org/#e-mail-state-(type=email)
Submitted by
anonymous
-
2 months ago
2023-09-18 00:14
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
3 months ago
2023-09-17 15:17
(Last modified 2 months ago)
2023-09-19 14:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
3 months ago
2023-09-16 14:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
amp;
PCRE2 (PHP >=7.3)
subtitui
Submitted by
seidao
-
3 months ago
2023-09-15 14:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Correo Electrónico
PCRE2 (PHP >=7.3)
Validar un correo electrónico con una expresión regular básica
Submitted by
anonymous
-
3 months ago
2023-09-14 02:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
3 months ago
2023-09-13 00:35
(Last modified 3 months ago)
2023-09-13 00:41
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
números html
PCRE2 (PHP >=7.3)
numeros
Submitted by
anonymous
-
3 months ago
2023-09-12 23:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
select report
PCRE2 (PHP >=7.3)
select report
Submitted by
H.Nasirii
-
3 months ago
2023-09-12 19:12
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
3 months ago
2023-09-12 13:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
3 months ago
2023-09-11 06:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
3 months ago
2023-09-10 16:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
SGML & XML
PCRE2 (PHP >=7.3)
Match SGML and XML elements.
Submitted by
anonymous
-
3 months ago
2023-09-10 00:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
3 months ago
2023-09-09 14:36
(Last modified 2 months ago)
2023-09-23 03:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Opportunity Close
PCRE (PHP <7.3)
Prepare batch job for opportunity close
Submitted by
wistlo
-
3 months ago
2023-09-08 17:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Patron de Blogs
PCRE2 (PHP >=7.3)
Patron para la busqueda de URLS En sitemaps de blogs
Submitted by
anonymous
-
3 months ago
2023-09-08 12:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
One letter in row
PCRE2 (PHP >=7.3)
([a-z])(?!.*\1)
Submitted by
anonymous
-
3 months ago
2023-09-07 19:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
3 months ago
2023-09-06 21:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
3 months ago
2023-09-06 16:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
3 months ago
2023-09-06 14:06
1
...
4
5
6
7
8
9
10
...
583
best2bee topic standard
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
(?<ambiente>
\w
*
)
[
-_
]
(?<app>
\w
*
)
[
-_
]
(?<hospital>
\w
*
)
[
-_
]
(?<database>
\w
*
)?
[
-_
]
(?<schema>
\w
*
)?
[
-_
]
(?<table>
\w
*
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
5 months ago
2023-06-21 13:17