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 17,260 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
capture strings between starts and ends line
ECMAScript (JavaScript)
capture any strings between starts and ends line
Submitted by
anonymous
-
4 months ago
2023-05-22 17:36
(Last modified 6 days ago)
2023-09-26 04:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
latlonlatlon
PCRE (PHP <7.3)
gg
Submitted by
anonymous
-
4 months ago
2023-05-22 19:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match All Words Beginning With 'a'
PCRE2 (PHP >=7.3)
This code can be adapted to match any character or word in a list using a textbox as follows: "^[" & TextBox2.Text & "]\w+" However, for this to work the text in the main textbox needs to be made into a list replacing whitespaces, tabs, carriage returns, etc. with a carriage return. The list doesn...
Submitted by
anonymous
-
4 months ago
2023-05-23 00:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Remove XML whitespace
PCRE2 (PHP >=7.3)
Removes whitespace around XML elements and trims the content
Submitted by
anonymous
-
4 months ago
2023-05-23 06:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Replace namespaces in xpath with local-name
.NET (C#)
Replace namespaces in xpath with local-name
Submitted by
pvlzh
-
4 months ago
2023-05-23 08:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Session Start/Close
Python
Capturing Start/Close in IRC-logs
Submitted by
Corpset
-
4 months ago
2023-05-23 09:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Proxy Matcher
PCRE (PHP <7.3)
Validate 1-223.0-255.0-255.0-255:1-65535
Submitted by
dev.tntd2k2
-
4 months ago
2023-05-23 13:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
vscode-f5 xc reserved ports issue #209
ECMAScript (JavaScript)
https://github.com/f5devcentral/vscode-f5/issues/209
Submitted by
anonymous
-
4 months ago
2023-05-24 12:57
(Last modified 4 months ago)
2023-05-24 14:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Etiquetas de HTML
PCRE2 (PHP >=7.3)
Ejercicio 3. Diseño de expresión regular asignada y autómata finito Equipo: MAD
Submitted by
anonymous
-
4 months ago
2023-05-25 02:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Patent Number part extraction
PCRE2 (PHP >=7.3)
Patent Number part extraction (Country Code + Number + Kind Code)
Submitted by
anonymous
-
4 months ago
2023-05-25 14:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Windows File With Double Extension
PCRE2 (PHP >=7.3)
This can be used for threat hunting. It will look for valid file names that have a double extension that can be used to trick people. Ex: Invoice.pdf.exe
Submitted by
Todd A Danko
-
4 months ago
2023-05-25 15:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
YouTube link parser
PCRE2 (PHP >=7.3)
Validate an URI to YouTube video.
Submitted by
anonymous
-
4 months ago
2023-05-25 20:47
(Last modified 4 months ago)
2023-05-25 20:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Martch Letras y Parentesis
Java 8
Martch Letras y Parentesis
Submitted by
Daniel Gonzalez
-
4 months ago
2023-05-26 00:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Username (Alphanumeric Only)
PCRE2 (PHP >=7.3)
Alphanumeric Only (Uppercase + Lowercase + Numeric) Not support special character.
Submitted by
yvnt
-
4 months ago
2023-05-26 01:35
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Password (Numeric, Special Char, Uppercase, Lowercase)
PCRE2 (PHP >=7.3)
Password Regex with minimum contain one Numeric, Special Char, Uppercase, Lowercase
Submitted by
yvnt
-
4 months ago
2023-05-26 01:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex range date
PCRE2 (PHP >=7.3)
\b((?:19|20)\d{2})-(0[1-9]|1[0-2])-(0[1-9]|12|3[01])\b
Submitted by
Ziuzhang
-
4 months ago
2023-05-26 08:49
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular expression Regix for Iranian mobile phone numbers
PCRE2 (PHP >=7.3)
Regular expression Regix for Iranian mobile phone numbers
Submitted by
anonymous
-
4 months ago
2023-05-26 15:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
strip host port
PCRE (PHP <7.3)
removes port number from URL
Submitted by
pc
-
4 months ago
2023-05-26 15:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
List of lists of numbers (no leading zeros)
Python
List of lists of numbers (no leading zeros)
Submitted by
anonymous
-
4 months ago
2023-05-26 19:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
shift_factor
Python
extracting constraint id from composed column header
Submitted by
Dario Romero
-
4 months ago
2023-05-26 20:53
1
...
852
853
854
855
856
857
858
...
863
cpc=ordinary
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
P-Asserted-Identity:
<sip:
+
447977084808;cpc=ordinary@m97
.
sip
.
three
.
co
.
uk;user=phone>,<tel:
+
447977084808;cpc=ordinary>
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-09-07 13:09