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 2,160 community submitted regex patterns...
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
exp1
Python
no description available
Submitted by
anonymous
-
7 years ago
2016-05-18 13:24
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
EclipseKeyword_2
Python
no description available
Submitted by
Rashmin
-
7 years ago
2016-06-10 09:05
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
AliasMatch
Python
no description available
Submitted by
anonymous
-
7 years ago
2016-06-22 12:27
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Find PHP object variables
Python
Find PHP object variables, and replace them with (array)brackets.
Submitted by
The Milkman
-
7 years ago
2016-06-22 15:33
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Adress regex
Python
no description available
Submitted by
Ali
-
7 years ago
2016-06-28 18:02
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Password (4 Classes)
Python
1 Uppercase 1 lower case 1 number 1 not a number or letter
Submitted by
anonymous
-
7 years ago
2016-08-06 21:47
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
IPv6 detection
Python
It's too large to match with all which seems like an IPv6. It's not perfect, but it's detects more valid IPv6 than some others regex.
Submitted by
Ajabep
-
7 years ago
2016-08-15 13:31
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
.*(\d+).* Selects last number
Python
no description available
Submitted by
anonymous
-
7 years ago
2016-09-13 20:27
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Ansible Host Var checking
Python
We had an issue where the "hosts=some_var" value could cause mass deployments if the wrong value was passed through. Specifically a comma with nothing surrounding it (i.e. "hosts=,"). This regex will allow us to fail when certain characters are present.
Submitted by
anonymous
-
7 years ago
2017-02-10 19:33
1
14 upvotes, 13 downvotes (score 34%) (You must be signed in to vote)
Regular expression to remove all puncutation
Python
Removes all of the puncutation present inlcuding \n,\t,\r
Submitted by
Abhinav Gupta
-
9 years ago
2014-06-20 07:18
2
7 upvotes, 5 downvotes (score 32%) (You must be signed in to vote)
postgesql
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-08-11 09:45
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Palabras en mayúscula que no están después de un punto
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-04-18 16:57
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Parasite subtitles
Python
no description available
Submitted by
Andrey Spiridonov
-
9 years ago
2014-05-19 18:38
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
python regex
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-09-05 20:18
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Capture 5 words either side of a match string
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-11-28 04:37
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Match 5 forward slashes
Python
Match 5 forward slashes
Submitted by
anonymous
-
8 years ago
2015-04-16 23:13
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
IPv4 Validator
Python
no description available
Submitted by
dannyo
-
8 years ago
2015-09-10 08:17
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
SED
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-11-12 15:42
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
match those lines whose first n chars contains 1+ non numeric
Python
1100582367|SDFDSFDSFDSFDSFDF GBC213WREW|RWEFSDFSDF 1100582377|DSFDSFDSFDSF 2NDG.S.D BIKADSFDSFDSFNO.421 1100582387|SDFSDFSDFDSF
Submitted by
sid
-
7 years ago
2016-04-05 20:01
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Mime type parser
.NET (C#)
A "simple" regex to parse mime types. Handles all commonly occurring parts of a mime type string such as: Type Subtype Subtype's with an extra extension (e.g. svg+xml) (Optional input) Multiple parameters (Optional input)...
Submitted by
Vespion
-
7 months ago
2023-02-14 14:11
(Last modified 7 months ago)
2023-02-14 16:03
1
2
3
4
5
6
7
...
108
15.02.2022 15:00:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
^\d
{2}
\.
\d
{2}
\.
\d
{4}
\d
{2}
:
\d
{2}
:
\d
{2}
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 months ago
2023-02-06 12:57