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 15,840 community submitted regex patterns...
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
Basic Achaea Full Prompt
PCRE (PHP <7.3)
matches a simple full prompt
Submitted by
anonymous
-
8 years ago
1
XML Double Tag
PCRE (PHP <7.3)
no description available
Submitted by
Donovan
-
8 years ago
1
css_dark
ECMAScript (JavaScript)
css样式排除github的一个正则表达式
Submitted by
amy
-
8 years ago
2
CSS @media selector
ECMAScript (JavaScript)
Matches a CSS @media selector, matches outer {} curly brackets, works with every CSS code, minified too.
Submitted by
emd4
-
8 years ago
1
Outher {} brackets
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
VK Video URL Parser
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
SQL Limit Clause
PCRE (PHP <7.3)
checks for valid limit clause of an sql statement
Submitted by
Magesh Kumaar
-
8 years ago
2
Match multiline comments /* ... */
PCRE (PHP <7.3)
It won't match single line comments like this one: //* This comment won't be match */ ^ see the double / Works in PHP without the g modifier.
Submitted by
SimonaHalep
-
8 years ago
1
A
PCRE (PHP <7.3)
Aa
Submitted by
anonymous
-
8 years ago
1
...
554
555
556
557
558
...
792
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
(?:
http
(?:
s
)?
:
\/\/
)?
(?:
www
\.
)?
(?:
play
\.
google
\.
com
\/
|
itunes
\.
apple
\.
com
\/
)
(?:
.
+
\/
)?
/
Open regex in editor
Description
no description available
Submitted by
anonymous
-
8 years ago