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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 18,000 community submitted regex patterns...
1
gotcha
ECMAScript (JavaScript)
Ci
Submitted by
anonymous
-
8 years ago
1
vowels
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Regex for Instance name validation
ECMAScript (JavaScript)
no description available
Submitted by
Sanoj Antony
-
8 years ago
1
Convert an LDIF from DS A into LDIF in DS B in one Regex
PCRE (PHP <7.3)
If you need to convert an LDIF exported from one directory to an LDIF in another directory, replacing the DN and attr names from one to the other
Submitted by
anonymous
-
8 years ago
1
JS terminal stuff
ECMAScript (JavaScript)
no description available
Submitted by
b3nsn0w
-
8 years ago
1
Regex HTML
ECMAScript (JavaScript)
Trying to get in between ><
Submitted by
anonymous
-
8 years ago
1
time stamp english
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
date time stamps
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
checks for valid filename
PCRE (PHP <7.3)
filename.txt Not: .filename.txt
Submitted by
RAussi
-
8 years ago
1
Check for GUID/UUID
PCRE (PHP <7.3)
This pattern search case insensitive for a valid GUID: a combination of A-Z and 9-0 in four groups delimited by a dash: [8]-[4]-[4]-[4]-[12].
Submitted by
Fallon Turner
-
8 years ago
1
Ticketnummer
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
MML
Python
no description available
Submitted by
Aron
-
8 years ago
1
capital of
Python
no description available
Submitted by
Shebin
-
8 years ago
1
phone
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
small version of path select
PCRE (PHP <7.3)
Selects: /foldera/folderb/
Submitted by
RAussi
-
8 years ago
1
Selects full path without filename or query parameter
PCRE (PHP <7.3)
For example: /foldera/folderb/filename.txt?query=abc Result: /foldera/folderb/
Submitted by
RAussi
-
8 years ago
1
Selects fist directory path
PCRE (PHP <7.3)
For example: /foldera/folderb/filename.txt Result: foldera
Submitted by
RAussi
-
8 years ago
1
For regex replace: Removes last part of directory/filename
PCRE (PHP <7.3)
For example: /foldera/folderb/filename.txt?value=abc Selects: /foldera/folderb
Submitted by
RAussi
-
8 years ago
1
fail2ban roundcube debian8 jessie /var/log/roundcube/errors
Python
no description available
Submitted by
Daniel Bañobre
-
8 years ago
1
PTN Ply Matching
PCRE (PHP <7.3)
PTN (Portable Tak Notation) is a format to transport the history of a played game of Tak. The body of PTN files consists of ordered lines of moves, each consisting of one or two plies. This pattern parses PTN move lines and groups interesting information in useful groups.
Submitted by
TreffnonX (Janis Schöck)
-
8 years ago
1
...
634
635
636
637
638
...
900
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
^
(
[
a
-
z
]
:
|
\/
[
a
-
z0
-
9_.$●-
]
+
\/
[
a
-
z0
-
9_.$●-
]
+
)?
(
(?:
\/
|
^
)
(?:
[^
\/
:*?"<>|
\r\n
]
+
\/
)+
)
/
Open regex in editor
Description
For example: /foldera/folderb/filename.txt?query=abc
Result: /foldera/folderb/
Submitted by
RAussi
-
8 years ago