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)
javascript
Laughter
Matches all laughter like: hahahahhhahahahha hahha ahah lol lolollolll...
Submitted by
Prozilla
-
2 hours ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
Egyptian Phone Numbers
Validate Egyptian phone numbers ... Read More (Arabic)
Submitted by
Mahmoud Mostafa
-
4 hours ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
javascript
Egyptian National ID
This validates the components of the Egyptian national ID ... See details (Arabic)
Submitted by
Mahmoud Mostafa
-
4 hours ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
string substitution in bash behaving differently from PCRE(PHP<7.3>
question about bash not returning expected results, the same result as this saved regex returns here
Submitted by
anonymous
-
21 hours ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
match eslint packages other than next.js
This could be used to group eslint stuff in renovate config for a next.js project. Since you're intended to keep eslint-plugin-next at the same version as next itself, you would want to group it with next instead. Using negative lookahead we can ignore eslint-config-next (or anything else you may wi...
Submitted by
Mitsunee
-
2 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
strip host port
removes port number from URL
Submitted by
pc
-
2 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
-
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)
java
Martch Letras y Parentesis
Martch Letras y Parentesis
Submitted by
Daniel Gonzalez
-
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
-
3 days ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
java
AWS Web Service Regions
Data classification on AWS Web Services specifically the URL connections you seen on the applications
Submitted by
loganmcampbell
-
3 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)
javascript
vscode-f5 xc reserved ports issue #209
https://github.com/f5devcentral/vscode-f5/issues/209
Submitted by
anonymous
-
4 days ago
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
pcre
Proxy Matcher
Validate 1-223.0-255.0-255.0-255:1-65535
Submitted by
dev.tntd2k2
-
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
2
3
4
...
736
determine if input text is an URL
Vote
0
0 upvotes, 0 downvotes (0% like it) (You must be signed in to vote)
Regular Expression
pcre2
/
(
(
https
?
:
)?
\/\/
)?
(
(
[
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)+
(
:
(
[
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)+
)?
@
)?
(
[
\d\w
]
[
-
\d\w
]
{0,253}
[
\d\w
]
\.
)+
[
\w
]
{2,63}
(
:
[
\d
]
+
)?
(
\/
(
[
-+_~.
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)*
)*
(
\?
(
&
?
(
[
-+_~.
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)
=
?
)*
)?
(
#
(
[
-+_~.
\d\w
]
|
%
[
a
-
fA
-
f
\d
]
{2,2}
)*
)?
/
gmi
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
- 2 months ago