Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Regular expression Regix for Iranian mobile phone numbers
Regular expression Regix for Iranian mobile phone numbers
Submitted by
anonymous
-
2 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Regex range date
\b((?:19|20)\d{2})-(0[1-9]|1[0-2])-(0[1-9]|12|3[01])\b
Submitted by
Ziuzhang
-
2 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Password (Numeric, Special Char, Uppercase, Lowercase)
Password Regex with minimum contain one Numeric, Special Char, Uppercase, Lowercase
Submitted by
yvnt
-
2 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Username (Alphanumeric Only)
Alphanumeric Only (Uppercase + Lowercase + Numeric) Not support special character.
Submitted by
yvnt
-
2 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
YouTube link parser
Validate an URI to YouTube video.
Submitted by
anonymous
-
2 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Windows File With Double Extension
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
-
3 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Patent Number part extraction
Patent Number part extraction (Country Code + Number + Kind Code)
Submitted by
anonymous
-
3 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Etiquetas de HTML
Ejercicio 3. Diseño de expresión regular asignada y autómata finito Equipo: MAD
Submitted by
anonymous
-
3 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
dotnet
Replace namespaces in xpath with local-name
Replace namespaces in xpath with local-name
Submitted by
pvlzh
-
5 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Remove XML whitespace
Removes whitespace around XML elements and trims the content
Submitted by
anonymous
-
5 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Match All Words Beginning With 'a'
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
-
5 days ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre2
Discord name with both old and new name support
This discord regex supports both the new and the old version of discord names. Old: NAME#[0001-9999] Between 2 and 32 characters....
Submitted by
Fy17
-
6 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
UFUNCTION parser
Breaks any UFUNCTION into parts
Submitted by
anonymous
-
7 days ago
-1
0 upvotes, 1 downvotes (0% like it) (You must be signed in to vote)
pcre2
url matcher 2.0
now matches any protocol, as well as username, password, query and fragment. query is not split
Submitted by
Mitsunee
-
8 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Country Codes (Alpha 2 and Alpha 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
-
8 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
webforms detection
Rule to identify web form collections
Submitted by
Pandurang Patil
-
9 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
async calls in foreach
async calls in foreach loop, search by await keyword found in foreach
Submitted by
mmateeva
-
10 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Firstname Lastname (Western alphabet)
A regular expression to validate Firstname Lastname, supports multiple names, de, le, O',L',l',d', prefixes.
Submitted by
remedio
-
10 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Clean up Scribd quote
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
-
11 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
Sonepar - BW5 Service Mapping
Common Mapping
Submitted by
anonymous
-
11 days ago
1
2
3
4
...
102
Match a shell-style parameter expansion introduced with a dollar sign and enclosed in culry braces.
Vote
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
Regular Expression
pcre2
/
\$\{
[
A
-
Z0
-
9_
]
[^
:
\#\<
%
\/\$\{\}
]
+
\}
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
- 2 months ago