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...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get digits
Golang
Trying to get digits
Submitted by
Arthur Silva
-
7 months ago
2023-05-03 18:20
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
-
7 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
-
7 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
-
7 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
-
7 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
-
7 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
-
7 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
-
7 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
-
7 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
-
7 months ago
2023-05-05 20:19
(Last modified 7 months ago)
2023-05-05 20:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
traceid or teace_id of skywalking
PCRE2 (PHP >=7.3)
match for traceid of skywalking etc.
Submitted by
czwanga
-
7 months ago
2023-05-06 05:18
(Last modified 7 months ago)
2023-05-06 05:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ajuda
PCRE2 (PHP >=7.3)
criado para fins de teste
Submitted by
anonymous
-
7 months ago
2023-05-06 13:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
non-sargable finder
PCRE2 (PHP >=7.3)
find non-sargable sql
Submitted by
nick preston
-
7 months ago
2023-05-07 11:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
CHECK
PCRE2 (PHP >=7.3)
CHECK
Submitted by
vishnu
-
7 months ago
2023-05-08 10:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
camel assistant solution parse
PCRE2 (PHP >=7.3)
camel assistant solution parse
Submitted by
anonymous
-
7 months ago
2023-05-08 21:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Aspnetzero
PCRE2 (PHP >=7.3)
Aspnetzero
Submitted by
anonymous
-
7 months ago
2023-05-09 05:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Proventos Rico
PCRE2 (PHP >=7.3)
Extrair informações do arquivo de proventos da corretora Rico.
Submitted by
anonymous
-
7 months ago
2023-05-14 19:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Special Chars
PCRE2 (PHP >=7.3)
Exclude special chars with exceptions
Submitted by
anonymous
-
7 months ago
2023-05-15 14:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
MARKDOWN title reader
PCRE2 (PHP >=7.3)
matches the titles from a markdown starting with i.e. Campaign uploader {#15mins-campaign-uploader}
Submitted by
Deepak O
-
7 months ago
2023-05-16 10:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Sonepar - BW5 Service Mapping
PCRE2 (PHP >=7.3)
Common Mapping
Submitted by
anonymous
-
7 months ago
2023-05-17 15:30
1
...
574
575
576
577
578
579
580
...
583
Indian Phone Numbers!
1
7 upvotes, 6 downvotes (score 29.1%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(
\+
)
(?(1)
)
\d
{1,3}
?
[
-
]
?
\d
{10}
$
|
^
(
[^
0
]
)
(?(1)
)
\d
{9}
?
$
|
^
(
[
0
]
)
(?(1)
)
\d
{10}
?
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
Prateek Jain
-
9 years ago
2015-06-02 15:16