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 11,920 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
small version of path select
PCRE (PHP <7.3)
Selects: /foldera/folderb/
Submitted by
RAussi
-
8 years ago
1
phone
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
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
checks for valid filename
PCRE (PHP <7.3)
filename.txt Not: .filename.txt
Submitted by
RAussi
-
8 years ago
1
date time stamps
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
time stamp english
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
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
Separate words in sentence
PCRE (PHP <7.3)
Separate words in sentence
Submitted by
Elijah Mwangi
-
8 years ago
1
Select Specific text (Boulevard)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
justtesting<script>
PCRE (PHP <7.3)
justtesting
Submitted by
justtesting<script>
-
8 years ago
1
PHP (variable, function, class, constant) naming convension
PCRE (PHP <7.3)
PHP Basic coding standard
Submitted by
Najmuddeen Mohammed
-
8 years ago
1
Full mw php
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
php-mw0
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Checks for file ending
PCRE (PHP <7.3)
I.e. /folder/folder/filename.txt
Submitted by
RAussi
-
8 years ago
1
ruby
PCRE (PHP <7.3)
fdsafdsa
Submitted by
fdsafdsa
-
8 years ago
1
وب برتر
PCRE (PHP <7.3)
درج آگهی رایگان اینترنتی با وب برتر.
Submitted by
pdsign
-
8 years ago
1
SV.NET Service Bus Log
PCRE (PHP <7.3)
SV.NET Service Bus Log
Submitted by
Garry West
-
8 years ago
1
Letter followed up by to 7 numerical digits
PCRE (PHP <7.3)
This regex will match an input string of the letter B (or b) followed up by to 7 numerical digits. It will fail if any letter/number/symbol is used other than B (or b) and more than 7 numbers are entered after B (or b). This is simple and was useful for validating a Court Case ID number for users af...
Submitted by
Alan Armbrust
-
8 years ago
1
SAIL Recipe Link Fix
PCRE (PHP <7.3)
Find the recipe anchor reference to be converted to a file reference. Replacement regex for sublime is: \L$3\.md
Submitted by
anonymous
-
8 years ago
1
...
511
512
513
514
515
...
596
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