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,460 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Support metrics.agent.grafana.com/module or prometheus.io/module for Ingresses with or without K/V pairs for multiple ports
PCRE2 (PHP >=7.3)
relabel_configs: allow override of the blackbox probing module to use by default the module http_2xx is used, if a single value is specified it will become the default for each target within the ingress a comma-delimited list convention of /foo=http_2xx_post,/bar=http_2xx_put is supported as well, t...
Submitted by
AaronB
-
5 months ago
2023-04-27 01:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Example 1.1: Pet Name
PCRE (PHP <7.3)
Example used in slide 39
Submitted by
anonymous
-
5 months ago
2023-04-27 04:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Google Firebase/Firestore Regions Regex
PCRE2 (PHP >=7.3)
It is the regex code used to parse the regions of the servers where Google Firebase, Firestore and Cloudfuntion are hosted. Resources: https://firebase.google.com/docs/firestore/locations https://firebase.google.com/docs/functions/locations
Submitted by
Ramazan Sancar (gh:@ramazansancar)
-
5 months ago
2023-04-29 16:52
(Last modified 5 months ago)
2023-04-29 17:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
password-6-char-letters-numbers
PCRE2 (PHP >=7.3)
e
Submitted by
anonymous
-
5 months ago
2023-05-02 06:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Don’t
PCRE2 (PHP >=7.3)
Bb
Submitted by
Hi
-
5 months ago
2023-05-02 09:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
NIgerian Phone Numbers RegEx Validation
PCRE2 (PHP >=7.3)
This RegEx validates whether a number is in the standard valid Nigerian mobile number format or not.
Submitted by
funmitoblessed
-
5 months ago
2023-05-02 15:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
primera expresion SA CV
PCRE2 (PHP >=7.3)
.SA.CV
Submitted by
roberto fernandez
-
5 months ago
2023-05-03 00:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Inclusions
PCRE2 (PHP >=7.3)
m
Submitted by
anonymous
-
5 months ago
2023-05-03 12:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Date with leap years
PCRE2 (PHP >=7.3)
Accepting every date between 2010 to 2050. Format is YYYY-MM-DD hh:mm
Submitted by
Sten
-
5 months ago
2023-05-03 12:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Innovative
PCRE2 (PHP >=7.3)
Parts
Submitted by
anonymous
-
5 months ago
2023-05-03 15:08
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Telegram messages url
PCRE2 (PHP >=7.3)
to match telegram messages url
Submitted by
anonymous
-
5 months ago
2023-05-03 18:06
(Last modified 5 months ago)
2023-05-03 18:08
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Suriname phone number
PCRE2 (PHP >=7.3)
So the regular expression ensures that the phone number starts with "+597", followed by either a 7 or 8, and then six more digits. This will match all three phone numbers you provided as examples.
Submitted by
Kenny
-
5 months ago
2023-05-03 19:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Jira images
PCRE2 (PHP >=7.3)
It finds images in Jira markup
Submitted by
anonymous
-
5 months ago
2023-05-04 10:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Amadeus TST Match
PCRE2 (PHP >=7.3)
Analyzes Amadeus TST element
Submitted by
anonymous
-
5 months ago
2023-05-04 12:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find anything between comillas.
PCRE2 (PHP >=7.3)
This regex gets anything between double quotes.
Submitted by
Tomas Giordano
-
5 months ago
2023-05-04 20:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Cloudfront.net
PCRE2 (PHP >=7.3)
This syntax I've used to block some Indonesian gambling site that using cloudflare services to hide their real IP address. "Use at your own risk"
Submitted by
anonymous
-
5 months ago
2023-05-05 13:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
valid path
PCRE2 (PHP >=7.3)
valid path
Submitted by
anonymous
-
5 months ago
2023-05-05 13:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
SnackVideo and Others Social Media
PCRE2 (PHP >=7.3)
This syntax I've used to block SnackVideo and others social media (Helo, Likee, Smule, etc) that use google services on their site. Currently tested on Adguard Home.
Submitted by
devinaws
-
5 months ago
2023-05-05 13:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
domain name with subdomains
PCRE (PHP <7.3)
should match any domain with one or more subdomains
Submitted by
Igor Tiulkanov
-
5 months ago
2023-05-05 14:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Dotnet Solution Project Parser
PCRE2 (PHP >=7.3)
Parse the projects listed in a sln file
Submitted by
github.com/rbleattler
-
5 months ago
2023-05-05 20:19
(Last modified 5 months ago)
2023-05-05 20:24
1
...
563
564
565
566
567
568
569
...
573
Date with this format YYYY-MM-DD and year start 20 or 21
-4
1 upvotes, 5 downvotes (score 3%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(
20
|
21
)
[
0
-
9
]
{2}
-
(
0
[
1
-
9
]
|
1
[
0
-
2
]
)
-
(
0
[
1
-
9
]
|
[
1
-
2
]
[
0
-
9
]
|
3
[
0
-
1
]
)
$
/
date php
Open regex in editor
Description
Loading markdown...
Submitted by
cisc0
-
10 years ago
2014-02-11 10:22