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 11,880 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
camel assistant solution parse
PCRE2 (PHP >=7.3)
camel assistant solution parse
Submitted by
anonymous
-
7 months ago
2023-05-08 21:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Aspnetzero
PCRE2 (PHP >=7.3)
Aspnetzero
Submitted by
anonymous
-
7 months ago
2023-05-09 05:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Proventos Rico
PCRE2 (PHP >=7.3)
Extrair informações do arquivo de proventos da corretora Rico.
Submitted by
anonymous
-
7 months ago
2023-05-14 19:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Riedler's 2nd URL regex
Java 8
why did I make this?
Submitted by
Riedler
-
7 months ago
2023-05-14 22:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Special Chars
PCRE2 (PHP >=7.3)
Exclude special chars with exceptions
Submitted by
anonymous
-
7 months ago
2023-05-15 14:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
MARKDOWN title reader
PCRE2 (PHP >=7.3)
matches the titles from a markdown starting with i.e. Campaign uploader {#15mins-campaign-uploader}
Submitted by
Deepak O
-
7 months ago
2023-05-16 10:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Sonepar - BW5 Service Mapping
PCRE2 (PHP >=7.3)
Common Mapping
Submitted by
anonymous
-
7 months ago
2023-05-17 15:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Clean up Scribd quote
PCRE2 (PHP >=7.3)
Scribd is a great resource for reading more than you would be able to otherwise, but the app sucks. And in particular, it sucks if you want to copy your highlights to another app, because it automatically adds the book, author, and a link to Scribd with every copy. This regex simple eliminates all ...
Submitted by
derBingle
-
7 months ago
2023-05-17 16:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Firstname Lastname (Western alphabet)
PCRE2 (PHP >=7.3)
A regular expression to validate Firstname Lastname, supports multiple names, de, le, O',L',l',d', prefixes.
Submitted by
remedio
-
7 months ago
2023-05-18 03:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
async calls in foreach
PCRE2 (PHP >=7.3)
async calls in foreach loop, search by await keyword found in foreach
Submitted by
mmateeva
-
7 months ago
2023-05-18 07:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
webforms detection
PCRE2 (PHP >=7.3)
Rule to identify web form collections
Submitted by
Pandurang Patil
-
7 months ago
2023-05-19 04:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Country Codes (Alpha 2 and Alpha 3)
PCRE2 (PHP >=7.3)
Country Code Classifier ISO 3166-1 alpha-2 codes are two-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest. They ar...
Submitted by
loganmcampbell
-
7 months ago
2023-05-19 20:35
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
UFUNCTION parser
PCRE2 (PHP >=7.3)
Breaks any UFUNCTION into parts
Submitted by
anonymous
-
6 months ago
2023-05-21 08:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
latlonlatlon
PCRE (PHP <7.3)
gg
Submitted by
anonymous
-
6 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
-
6 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
-
6 months ago
2023-05-23 06:09
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
-
6 months ago
2023-05-23 13:54
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
-
6 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
-
6 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
-
6 months ago
2023-05-25 15:14
1
...
585
586
587
588
589
590
591
...
594
Select Topmost HTML Tags
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
\<
(
ol
)
(?:
.
*
?
)?
\>
(?:
[^
\<
]
|
\<
(
.
*
?
)
\>
.
*
\<\/
\2
\>
)*
\<\/
\1
\>
/
sg
Open regex in editor
Description
Loading markdown...
Submitted by
Guilherme C. Souza
-
8 years ago
2015-06-12 14:27