Please enable JavaScript to use regex101
Regular
Expressions
101
Support Regex101
Social
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP)
ECMAScript (JavaScript)
Python
Golang
Java
.NET 7.0 (C#)
Rust
PCRE (Legacy)
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,300 community submitted regex patterns...
83
Distinguish torrent files (series vs movies)
Created
·
2014-06-26 09:59
Updated
·
2023-07-20 15:08
Flavor
·
Python
A neat regex for finding out whether a given torrent name is a series or a movie. Returns the full name of the series with the separator needed to make it pretty (ie, replace it with space or what you want). Also returns the season number or the year for the movie/series, depending on what was previously matched.
Submitted by
Firas Dib
13
US Currency Format
Created
·
2016-01-23 17:46
Flavor
·
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
9
Fixo LDN CSP e SEM CSP
Created
·
2014-11-18 14:02
Flavor
·
PCRE (Legacy)
no description available
Submitted by
Marcos Müller
485
regex101.com permalink id grabber
Created
·
2013-12-12 13:09
Updated
·
2024-04-11 14:32
Flavor
·
PCRE (Legacy)
Grabs the ID for the regex101.com permalink code. If a revision number is provided, grab that as well.
Submitted by
chris mccoy
238
Matching email addresses per RFC5322
Created
·
2013-10-23 17:46
Flavor
·
PCRE (Legacy)
The BNF rules from RFC 5322 transformed to PCRE by Nikita Popov and described in the post http://nikic.github.io/2012/06/15/The-true-power-of-regular-expressions.html.
Submitted by
Michael Musson
10
MikroTik FireWall
Created
·
2015-05-30 10:27
Flavor
·
PCRE (Legacy)
Regex used in Splunk to extract fields from Mikrotik FW. NOTES: Mikrotik must be configured to use "BSD Syslog" format FW rules must add, as log prefix, the action: drop accep reject etc...
Submitted by
HappyIdeasMaker
10
If-Then-Else Conditionals
Created
·
2015-08-28 15:52
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
10
money: either 0 or 2 dp
Created
·
2015-11-18 19:34
Flavor
·
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
11
remove comments from php code
Created
·
2015-05-26 15:18
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
13
Match Gmail Email
Created
·
2014-11-20 23:58
Flavor
·
PCRE (Legacy)
Recommended
·
Match Gmail Email
Submitted by
Óscar EnrÃquez
13
Credit Card Expiry Date
Created
·
2015-05-26 05:34
Flavor
·
ECMAScript (JavaScript)
Allows inserting expiry date as MM/YYYY or MM-YYYY format
Submitted by
Rider
12
Full url parse, domain, path, params
Created
·
2015-08-25 20:54
Flavor
·
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
5
Find All Python imports
Created
·
2014-10-07 12:03
Flavor
·
PCRE (Legacy)
no description available
Submitted by
anonymous
5
relative to absolute
Created
·
2015-01-20 01:16
Flavor
·
PCRE (Legacy)
relative to absolute
Submitted by
xp_prg
5
Variable name of code
Created
·
2015-09-19 11:18
Flavor
·
PCRE (Legacy)
To get a variable name from a source code: The variable name is before the '=' (equal sign) This is the way to detect. Problem: Only 1 variable can get from 1 line. Unfortunately, this can get variable between after "//" and before ";" too. I made this for fake script debugger. Just get variable from source code and put that after last semicolon with so much tab and messagebox code for every line.
Submitted by
Setsuna
5
Codice fiscale italiano
Created
·
2015-10-09 09:14
Flavor
·
PCRE (Legacy)
Oltre a supportare le omocodie controlla in modo restrittivo il carattere relativo al mese di nascita
Submitted by
Aldo Medri
5
Validate hex color
Created
·
2015-12-02 11:14
Flavor
·
PCRE (Legacy)
Validates hexadecimal color codes based on the following rule set: Optionally starting with a hash. 3 or 6 characters in length. Using the [0-9a-f] character set.
Submitted by
Nathaniel Blackburn
5
import url image
Created
·
2015-12-18 08:44
Flavor
·
Python
import url image
Submitted by
bartimeys
5
look for any $_POST['name']
Created
·
2016-01-14 23:35
Flavor
·
PCRE (Legacy)
if you are as lazy as me and want to replace every "=$_POST['name'];" using Dreamweaver or any development tool that allows using regular expressions to search in current file/document.
Submitted by
Kevinator
5
Form Tag
Created
·
2016-02-26 06:49
Flavor
·
Python
Form Tag
Submitted by
Jay Patel
Previous page
1
2
3
4
…
915
Next page
Community Library Entry
3
Regular Expression
Created
·
2016-01-19 14:35
Flavor
·
PCRE (Legacy)
/
(
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
)
-
-
\[
(
\d
{2}
\/
[
a
-
zA
-
Z
]
{3}
\/
\d
{4}
:
\d
{2}
:
\d
{2}
:
\d
{2}
(
\+
|
\-
)
\d
{4}
)
\]
(
(
\"
(
GET
|
POST
|
HEAD
|
OPTIONS
)
)(
.
+
)(
HTTP
\/
1
\.
(
1
|
0
)
"
)
)
(
\d
{3}
)
(
\d
+
)
(
[
"
]
(
(
\-
)
|
(
.
+
)
)
[
"
]
)
(
[
"
]
(
.
+
)
[
"
]
)
/
Open regex in editor
Description
parse the apache access log
Submitted by
pagu