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 5,620 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
datime
PCRE2 (PHP >=7.3)
datetime
Submitted by
anonymous
-
15 hours ago
2023-12-01 14:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Google chat WebHook integration
PCRE2 (PHP >=7.3)
Regular match an URL integration to Google chat by WebHook
Submitted by
Vito Bryliano
-
18 hours ago
2023-12-01 11:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
12 hour time
PCRE2 (PHP >=7.3)
Use this expression to validate a 12 hour time input
Submitted by
Amit Sharma
-
21 hours ago
2023-12-01 08:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Malaysian NRIC
PCRE2 (PHP >=7.3)
Strict Malaysian NRIC format check
Submitted by
17Hieng
-
a day ago
2023-12-01 04:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL
PCRE2 (PHP >=7.3)
Support any types of URL for https and http protocol. http or https [optional] domain name [mandatory] file path [optional] query parameter [optional]
Submitted by
17Hieng
-
a day ago
2023-12-01 03:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Custom Datetime Finder
PCRE2 (PHP >=7.3)
Determine date time parts
Submitted by
anonymous
-
a day ago
2023-11-30 17:52
(Last modified 17 hours ago)
2023-12-01 12:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
git-flow branch names
PCRE2 (PHP >=7.3)
This is the regex for our branch names.
Submitted by
stefanfrede
-
5 days ago
2023-11-27 08:58
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URLs
ECMAScript (JavaScript)
A simple URL regex that can handle most "properly" formed URLs, and some URIs. It features named groups to easily destruct matches. URIs can use relative paths (../ and ./) to resources. Example (JavaScript) let url = "https://username:password@example.org:8080/path/to/resource?query=term&query=ter...
Submitted by
ephellon
-
6 days ago
2023-11-26 02:56
(Last modified 6 days ago)
2023-11-26 08:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CSS classes
ECMAScript (JavaScript)
This selects all (non crazy) CSS class in all valid scenarios
Submitted by
anonymous
-
7 days ago
2023-11-25 14:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match paths
PCRE2 (PHP >=7.3)
Match paths
Submitted by
os_niko
-
7 days ago
2023-11-25 02:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
RegEx for Treating Express Route
ECMAScript (JavaScript)
A Regex that can be applied over the following routes pattern: GET ^\/auth\/?(?=\/|$)/generate GET ^\/auth\/?(?=\/|$)/callback Applying it inside a code, it will get like this:...
Submitted by
HorselessName
-
8 days ago
2023-11-24 04:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Prime number test
PCRE2 (PHP >=7.3)
Prime number test
Submitted by
anonymous
-
8 days ago
2023-11-24 01:37
(Last modified 44 minutes ago)
2023-12-02 04:49
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get a canonical link from html page
PCRE2 (PHP >=7.3)
Gets the canonical link from a html page provided it has one
Submitted by
anonymous
-
8 days ago
2023-11-23 23:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find all text lines after simple time code
PCRE2 (PHP >=7.3)
Given a time code caption file (not standards compliant) use this script to match all lines following a time code line You can use this regex in Notepad++ to generate a new file that only contains the matches in the form of ^(?!\d:\d{2}+).+
Submitted by
Alexander Roberts
-
9 days ago
2023-11-23 14:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Search disabled SSL verification
PCRE2 (PHP >=7.3)
Find SSLVerify = false
Submitted by
@Sergiomarotco
-
10 days ago
2023-11-22 16:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
QIF date from ISO format to French format
PCRE2 (PHP >=7.3)
Transforms an ISO date (YYY-MM-DD) into a French format date (DD/MM/YYYY). Substitute : D$3/$2/$1
Submitted by
Christian CROCHE
-
11 days ago
2023-11-20 20:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
QIF amount from French format to English for MS MONEY
PCRE2 (PHP >=7.3)
For a QIF file extracted from Boursorama bank account, transform the diffrent amount in French format to an English format (without thousand separator) for MS Money. ^([T\$])([-+]?)(\d*)(\s?)(\d+)(\,)(\d+)$ Substitute with $1$2$3$5.$7
Submitted by
anonymous
-
11 days ago
2023-11-20 20:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
חיפוש במשמעות של "או" ספרי הרמב"ם
PCRE2 (PHP >=7.3)
רוצים לחפש את המילה ספר בהתייחס לכל ספרי הרמב"ם
Submitted by
ישורון קובי
-
11 days ago
2023-11-20 20:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
XML/HTML Tag selector
PCRE2 (PHP >=7.3)
Pros: Attribute-aware (but not complete parse) Content-aware (text only) Cons: Might poor performance (unnecessary matches if you work on a ssr thing)...
Submitted by
stdpi
-
12 days ago
2023-11-20 09:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
traveloka accomodation url
PCRE2 (PHP >=7.3)
match traveloka accomodation url
Submitted by
anonymous
-
14 days ago
2023-11-18 12:10
1
2
3
4
...
281
DSN parser
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
(?:
(
\w
+
)
:
)?
(?:
(
\w
+
)
=
(
[^
;
]
+
)
;
?
)
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
ZKelo
-
2 months ago
2023-10-02 21:07
(Last modified 2 months ago)
2023-10-02 21:10