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 4,680 community submitted regex patterns...
0
Convert giphy iframes to images
PCRE2 (PHP >=7.3)
regex to convert giphy iframes to images giphy for newsletters
Submitted by
dares
-
3 years ago
0
Wordpress ShorCode capture
PCRE2 (PHP >=7.3)
Regex to capture shortcodes from wordpress post content
Submitted by
dares
-
3 years ago
1
https
PCRE2 (PHP >=7.3)
regex for url
Submitted by
anonymous
-
3 years ago
1
Search needle by position
PCRE2 (PHP >=7.3)
Searches for needle starting from an exact position
Submitted by
Volgers
-
3 years ago
0
Select progress from given text
PCRE2 (PHP >=7.3)
https://regex101.com/r/bbccFV/1
Submitted by
anonymous
-
3 years ago
0
YouTube video URL to video ID
Python
This regex can match with a valid YouTube link and retrieve the video ID in one of the four capturing groups. Unfortunately, I couldn't manage to use a single capturing group, but there is no difference between all of them.
Submitted by
Lyroy TheToad
-
3 years ago
(Last modified 3 years ago)
0
contentful
PCRE2 (PHP >=7.3)
contentful
Submitted by
anonymous
-
3 years ago
0
legal
PCRE2 (PHP >=7.3)
legal
Submitted by
anonymous
-
3 years ago
0
1111
PCRE2 (PHP >=7.3)
czxdzxddzxvxcdvsdzvszdvszd
Submitted by
anonymous
-
3 years ago
0
test
PCRE2 (PHP >=7.3)
curl -k https://splunk_ip:8089/services/auth/login --data-urlencode username=admin --data-urlencode password=admin01! curl -k -H "Authorization: Splunk 9d3zIppergQSjJ2C0TPV8PZghZ5fdvZz_GcVihhHLEdbpaZQAttQ10s^joWS_UpKvEbgM4ck9wtN_5wn5xbFZv04nAX9_nQEiVxcf3S" https://splunk_ip:8089/services/search/jo...
Submitted by
anonymous
-
3 years ago
0
rest api
PCRE2 (PHP >=7.3)
session key 생성 curl -k https://splunk_server_ip:8089/services/auth/login --data-urlencode username=admin --data-urlencode password=admin01! search query curl -k -H "Authorization: Splunk 9d3zIppergQSjJ2C0TPV8PZghZ5fdvZz_GcVihhHLEdbpaZQAttQ10s^joWS_UpKvEbgM4ck9wtN_5wn5xbFZv04nAX9_nQEiVxcf3S" https:...
Submitted by
anonymous
-
3 years ago
0
C# Add default xml comment to public class properties
PCRE2 (PHP >=7.3)
Converts this: public string? PropertyA { get; set; } To this: `/// /// PropertyA...
Submitted by
anonymous
-
3 years ago
0
Add string after matching 1st occurence, every line
Golang
Regex adding a string (here vs_) after 1st matching occurence (of reflectance_\d_).
Submitted by
Nikos Alexandris
-
3 years ago
0
Number valid for Ukraine phone
PCRE2 (PHP >=7.3)
(?=.*\+[0-9]{3}\s?[0-9]{2}\s?[0-9]{3}\s?[0-9]{4,5}$) \+ =обязательно + ввести [0-9]{3}\s? =вводить три цифры и разрешен пробел после [0-9]{2}\s? =вводить две цифры и разрешен пробел после [0-9]{3}\s? =вводить три цифры и разрешен пробел после...
Submitted by
anonymous
-
3 years ago
0
Madmax plots
PCRE2 (PHP >=7.3)
Madmx plots
Submitted by
anonymous
-
3 years ago
0
find dk domains
PCRE2 (PHP >=7.3)
only finds dk domains in urls
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Match all characters accept for those not accepted
PCRE2 (PHP >=7.3)
Pattern for validating a text area, to allow all characters except those in the regex pattern. An event listener checks entry on keyup, and displays error or success live in the bootstrap 5 HTML. if (field.name === "form_message") { const re = /#%^&*\/; if (re.test(field.va...
Submitted by
anonymous
-
3 years ago
0
tablespoons
Python
fasdgasdes
Submitted by
asffgsadd
-
3 years ago
0
Super Gene Voice of God
Python
Isolates lines to format from the popular Super Gene web novel
Submitted by
max
-
3 years ago
0
Match a phone number formatted using North American Numbering Plan (NANP)
Python
More Details: https://exercism.org/tracks/python/exercises/phone-number
Submitted by
Nishant Misra
-
3 years ago
(Last modified 3 years ago)
1
...
116
117
118
119
120
...
234
Phone Regex
0
Regular Expression
Python
r"
(
\+
91
[
\s
-
]
\d
{5}
[
\s
-
]
\d
{5}
)
|
(
011
[
\s
-
]
\d
{8}
)
|
(
\+
91
\d
{2}
[
\s
-
]
\d
{8}
)
|
(
^
0
\d
{10}
)
|
(
^
[
6
-
9
]
\d
{9}
)
|
(
91
[
\s
-
]
\d
{3,5}
[
\s
-
]
\d
{2,5}
[
\s
-
]
\d
{4}
)
|
(
91
[
\s
-
]
\d
{5}
[
\s
-
]
\d
{5}
)
|
(
91
[
\s
-
]
\d
{10}
)
|
(
\d
{4}
[
\s
-
]
\d
{4}
[
\s
-
]
\d
{3}
)
"
gm
Open regex in editor
Description
For Phone Numbers
Submitted by
anonymous
-
3 years ago