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,320 community submitted regex patterns...
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
-
7 hours ago
2023-11-30 17:52
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get text after parenthesis.
Python
This regular expression helps to get the strings of a line that comes after a parenthesis and a blank space. Could be useful with lines of text with or similar format of the APA citation style: Author (year) title
Submitted by
anonymous
-
4 days ago
2023-11-27 11:05
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
-
4 days ago
2023-11-27 08:58
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
-
6 days ago
2023-11-25 02:50
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
-
7 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
-
7 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
-
8 days ago
2023-11-22 16:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
IPv4+CIDR(optional)
Python
Strict validator for IPv4 with optional CIDR Disallows 00 in any octet
Submitted by
ophers
-
8 days ago
2023-11-22 15:10
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
-
10 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
-
10 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
ישורון קובי
-
10 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
-
11 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
-
13 days ago
2023-11-18 12:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Traveloka match url accomodation only
PCRE2 (PHP >=7.3)
match url for traveloka accomodation
Submitted by
anonymous
-
13 days ago
2023-11-18 12:09
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Email Address Validation
Python
RegEx pattern to match email addresses. Visit the detailed tutorial to learn more.
Submitted by
Minh Vu
-
13 days ago
2023-11-18 09:04
(Last modified 13 days ago)
2023-11-18 09:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Akamai - Extended + Custom field + GhostIP + CacheStatus + WAF
PCRE2 (PHP >=7.3)
Akamai LDS log format - Extended + Custom field + GhostIP + CacheStatus + WAF
Submitted by
anonymous
-
13 days ago
2023-11-17 15:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
SUT - Package Matching
PCRE2 (PHP >=7.3)
test
Submitted by
MHE
-
14 days ago
2023-11-17 10:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
NANP Modern Plan US Telephone / Phone number
Python
Match 10-digit phone number that mostly complies with NANP Modern Plan. https://en.wikipedia.org/wiki/North_American_Numbering_Plan Simple explanation: ...
Submitted by
makinhey
-
14 days ago
2023-11-17 01:14
(Last modified 13 days ago)
2023-11-17 20:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
integer only
PCRE2 (PHP >=7.3)
^[0-9]+$
Submitted by
anonymous
-
15 days ago
2023-11-16 08:21
(Last modified 15 days ago)
2023-11-16 08:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
nmcli WiFi list
PCRE2 (PHP >=7.3)
Extract different fields from the list output of nmcli: nmcli --terse --colors no --fields IN-USE,BSSID,SSID,MODE,CHAN,RATE,SIGNAL,BARS,SECURITY,FREQ,DEVICE device wifi list
Submitted by
Simon Bagley
-
17 days ago
2023-11-13 14:41
(Last modified 17 days ago)
2023-11-13 14:45
1
2
3
4
...
216
Python Print String arg extraction
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
Python
r"
(?:
(?<=
%
\(
)
|
(?<=
{
)
)
(
[^
\)
{
]
*
)
(?=
[
}
\)
]
)
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Giles Knap
-
2 months ago
2023-09-24 18:24