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 13,940 community submitted regex patterns...
0
Command line with escape
PCRE (PHP <7.3)
splits into command arguments: spaces split quotes keep spaced texts together \" escapes the quote
Submitted by
Skycoder42
-
9 years ago
0
Validate Password strength
PCRE (PHP <7.3)
(?=.*[A-Z]) # must contain 1 uppercase letter (?=.*[0-9]) # must contain 1 digit (?!.\n) # must not contain a newline character (?!.*\s) # must not contain any whitespace characters (?=.*[!$#+@%&]) # nust contain one of these symbols .{8,} # match a...
Submitted by
anonymous
-
9 years ago
1
Split String with Groups
PCRE (PHP <7.3)
Credits to TessellatingHeckler on StackOverview.com http://stackoverflow.com/questions/34235484/how-to-add-groups-to-capture-words-from-regex-split-pattern?noredirect=1#comment56214669_34235484
Submitted by
JMichaelTX
-
9 years ago
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
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
class code regex
Python
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
format time:"33:20 p.m"
Python
Get time in string 33:20 p.m
Submitted by
Hoang Phuong - Viet Nam
-
9 years ago
1
time
Python
get time in string 33:20 a.m
Submitted by
Hoang Phuong - Gia Lai
-
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
...
588
589
590
591
592
...
697
Release and master branches
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
refs
\/
heads
\/
)?
(
master
|
release
\/
[
0
-
9
]
+
(
\.
[
0
-
9
]
+
)*
?
)
$
/
gmx
Open regex in editor
Description
refs/heads/release/1.0.1 refs/heads/master master release/1.0.1
Submitted by
AbdElraouf Sabri
-
2 years ago
(Last modified 2 years ago)