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,280 community submitted regex patterns...
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
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
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
~ m|\:\/\/([^\/ ]+)|
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
uk phone numbers
PCRE (PHP <7.3)
uk phone numbers
Submitted by
p4lhip
-
8 years ago
1
|
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
renaming movies
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Template Parsing
PCRE (PHP <7.3)
matches everything enclosed by double curly brackets.
Submitted by
Luca Zampetti
-
8 years ago
1
Facebook Regex
PCRE (PHP <7.3)
Facebok
Submitted by
anonymous
-
8 years ago
1
rxPhones
PCRE (PHP <7.3)
rips all phones out of memo/text block stores by
Submitted by
dano
-
8 years ago
1
...
525
526
527
528
529
...
764
Selects full path without filename or query parameter
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