Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 15,080 community submitted regex patterns...
1
tm1_instance
PCRE (PHP <7.3)
for windows
Submitted by
anonymous
-
9 years ago
2
Shorten file path with /../
PCRE (PHP <7.3)
Example usage: $Path = preg_replace('/(?:^|(?<=\/))(?:+|\.(?!\.\/))++\/\.\.\//i', '', $Path);
Submitted by
Mr.Deek & +OnlineCop
-
9 years ago
1
Issues
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
/../ directory path cleaner
PCRE (PHP <7.3)
Replaces preceeding directory with / when ../ is used.
Submitted by
Mr.Deek
-
9 years ago
1
Split String using Custom Delimiter
PCRE (PHP <7.3)
This example uses colon (:)
Submitted by
anonymous
-
9 years ago
0
Testing (delete)
PCRE (PHP <7.3)
Testing (delete)
Submitted by
Testing (delete)
-
9 years ago
1
PE Filename Test
PCRE (PHP <7.3)
Blythedale Performance Evaluation Regex to check the Uploaded Filename
Submitted by
Vinod Jacob
-
9 years ago
1
match non-alphanumeric in string
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
getArrayInstance
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
getObjectInstance
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Bill Pay token
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
date validation during input
PCRE (PHP <7.3)
this regex is able to validate a date (format dd.mm.yyyy) in every state of user typing. i use it to ensure that the user isn't able to type in an invalid date at all (except from a leap year check which is done afterwards) The regex also makes assumptions of 'missed' separators so 1234 is captured...
Submitted by
anonymous
-
9 years ago
1
Date 01
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
IV
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Commission
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Indian mobile numbers
PCRE (PHP <7.3)
All indian mobile phone numbers are till now are in the format of +91-(789)(9-digits) or +91(789)(9-digits) or 0(789)(9-digits). those numbers which are come into this category is valid with this RegEx.
Submitted by
N shoban babu
-
9 years ago
1
anti-xss regex
ECMAScript (JavaScript)
this is a white list regex that invalidates input with "=
Submitted by
Ivan Cai
-
9 years ago
(Last modified a year ago)
4
Jeff Test
PCRE (PHP <7.3)
Valid and Invalid emails
Submitted by
anonymous
-
9 years ago
0
Apache log regex
PCRE (PHP <7.3)
Regex pattern for Apache log
Submitted by
Sujan Thapa
-
9 years ago
1
dsadas
PCRE (PHP <7.3)
dsadsadas
Submitted by
anonymous
-
9 years ago
1
...
629
630
631
632
633
...
754
AutoDateRegex
1
Regular Expression
PCRE (PHP <7.3)
/
^
(?<DAY>
d-
[
0
-
9
]
{1,2}
|
(
[
12
]
[
0
-
9
]
|
3
[
01
]
|
0
[
1
-
9
]
|
[
1
-
9
]
)
|
d
)
(?<MONTH>
m-
[
0
-
9
]
{1,2}
|
(
0
[
1
-
9
]
|
1
[
012
]
)
|
m
)
(?<YEAR>
y-
[
0
-
9
]
{1,2}
|
(
[
12
]
[
09
]
[
0
-
9
]
[
0
-
9
]
)
|
y
)
$
/
gmix
Open regex in editor
Description
Regex for date for example in saved reports (01m-1y) beginning of last month Format -> dmy
Submitted by
Mayer@netgo.org
-
9 years ago