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 4,600 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
tablespoons
Python
fasdgasdes
Submitted by
asffgsadd
-
2 years ago
2021-09-06 08:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
2 years ago
2021-09-06 08:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
find dk domains
PCRE2 (PHP >=7.3)
only finds dk domains in urls
Submitted by
anonymous
-
2 years ago
2021-09-06 10:28
(Last modified 2 years ago)
2021-09-06 10:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Madmax plots
PCRE2 (PHP >=7.3)
Madmx plots
Submitted by
anonymous
-
2 years ago
2021-09-06 14:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
2 years ago
2021-09-07 10:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
2 years ago
2021-09-08 10:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
2 years ago
2021-09-08 12:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
2 years ago
2021-09-09 00:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
2 years ago
2021-09-09 00:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
1111
PCRE2 (PHP >=7.3)
czxdzxddzxvxcdvsdzvszdvszd
Submitted by
anonymous
-
2 years ago
2021-09-09 00:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
legal
PCRE2 (PHP >=7.3)
legal
Submitted by
anonymous
-
2 years ago
2021-09-09 07:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
contentful
PCRE2 (PHP >=7.3)
contentful
Submitted by
anonymous
-
2 years ago
2021-09-09 07:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
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
-
2 years ago
2021-09-09 16:40
(Last modified 2 years ago)
2021-09-12 16:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Select progress from given text
PCRE2 (PHP >=7.3)
https://regex101.com/r/bbccFV/1
Submitted by
anonymous
-
2 years ago
2021-09-10 09:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Wordpress ShorCode capture
PCRE2 (PHP >=7.3)
Regex to capture shortcodes from wordpress post content
Submitted by
dares
-
2 years ago
2021-09-10 15:44
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Convert giphy iframes to images
PCRE2 (PHP >=7.3)
regex to convert giphy iframes to images giphy for newsletters
Submitted by
dares
-
2 years ago
2021-09-10 15:47
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove parameters from gif images urls
PCRE2 (PHP >=7.3)
.
Submitted by
dares
-
2 years ago
2021-09-10 15:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Replace line breaks and lines like "James 5:00 PM" to clean up messages copied from slack (iPFAnO/2)
PCRE2 (PHP >=7.3)
Before I recommend XMind 8 and not the newer XMind Zen (I have not tried XMind 2021). It is available here: xmind.net/download/xmind8 (edited) :heavy_plus_sign: 1...
Submitted by
Maksim Zinovev
-
2 years ago
2021-09-11 09:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Smartling custom placeholders and liquid strategy
Java 8
Suggested Smartling custom placeholder regex to support liquid syntax as documented for Braze. Because default value cannot be extracted easily recommend rewrting the liquite to avoid using default filters.
Submitted by
Eric Negron
-
2 years ago
2021-09-14 13:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ISO style date
PCRE2 (PHP >=7.3)
yyyy/mm/dd
Submitted by
Russ Ferriday - from a Docusign template
-
2 years ago
2021-09-24 15:42
1
...
96
97
98
99
100
101
102
...
230
España - CIF = NIF jurídico (normativa a Sep 2021)
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(?>
[
PQRSW
]
{1}
-
?
\d
{7}
-
?
[
A
-
Z
]
{1}
)
$
|
^
(?>
[
ABEH
]
{1}
-
?
\d
{7}
-
?
\d
{1}
)
$
|
^
(?>
[
CDFGJNUV
]
{1}
-
?
\d
{7}
-
?
[
A
-
Z0
-
9
]
{1}
)
$
|
^
(?>
[
ABCDEFGHJNPQRSUVW
]
{1}
-
?
00
\d
{5}
-
?
[
A
-
Z
]
{1}
)
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Raúl Moreno Bello
-
2 years ago
2021-09-28 11:05
(Last modified 2 years ago)
2021-11-02 14:50