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
入门学习
。
Submitted by
anonymous
-
5 hours ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
regex for flight policies
'nls__Cancellation permitted 03 Hrs before scheduled departure __nls Within 03-72 hrs INR 3,500 or 100% of airfare charge (whichever is lower) nls Before 72 hrs INR 3,000 or 100% of airfare charge (whichever is lower)' this is my string I want everything between nls and nls or nls and INR
Submitted by
anonymous
-
11 hours ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre2
exclude square brackets
exclude square brackets
Submitted by
tarek
-
a day ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
shift_factor
extracting constraint id from composed column header
Submitted by
Dario Romero
-
3 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
List of lists of numbers (no leading zeros)
List of lists of numbers (no leading zeros)
Submitted by
anonymous
-
3 days ago
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
-
3 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
-
3 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
-
4 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
-
4 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
-
4 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
-
4 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
-
4 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
-
5 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
Session Start/Close
Capturing Start/Close in IRC-logs
Submitted by
Corpset
-
6 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
-
7 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
-
7 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
-
7 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
PLDI regex 3
for pldi answer
Submitted by
PlaceReporter99
-
8 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
PLDI regex 2
for pldi answer
Submitted by
PlaceReporter99
-
8 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
python
PLDI regex 1
For pldi answer
Submitted by
PlaceReporter99
-
8 days ago
1
2
3
4
...
200
Special GPS input
Vote
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
Regular Expression
python
r"
^
(
-
?
(
(
[
0
-
8
]
?
\d
(
\.
\d
{1,6}
)?
)
|
(
90
(
\.
0
{1,6}
)?
)
)
)
:
(
-
?
(
(
\d\d
?
(
\.
\d
{1,6}
)?
)
|
(
1
[
0
-
7
]
\d
(
\.
\d
{1,6}
)?
)
|
(
180
(
\.
0
{1,6}
)?
)
)
)
(
:
(
-
?
\d\d
?
(
\.
\d
{1,6}
)?
)
)?
(
#
(
\d\d
?
(
\.
\d
{1,6}
)?
)
)?
(
_
(
\d\d
?
(
\.
\d
{1,6}
)?
)
)?
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
- 2 months ago