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
Community Patterns
Search among 15,180 community submitted regex patterns...
0
Get date from string
PCRE2 (PHP >=7.3)
Get date from string
Submitted by
anonymous
-
3 years ago
-4
Working With Data regex sample text
PCRE2 (PHP >=7.3)
This is a sample text for use at my "Working With Data" workshop session on regular expressions.
Submitted by
anonymous
-
3 years ago
0
Целые числа
PCRE2 (PHP >=7.3)
Для тестов
Submitted by
anonymous
-
3 years ago
(Last modified 2 years ago)
0
runs on /p/
PCRE2 (PHP >=7.3)
runs on /p/
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Nomor Telepon Indonesia
PCRE2 (PHP >=7.3)
Regex untuk nomor HP & PSTN Indonesia
Submitted by
@totoprayogo1916
-
3 years ago
0
match URL slug
PCRE2 (PHP >=7.3)
as per this question https://stackoverflow.com/questions/19256323/regex-to-match-a-slug
Submitted by
aurovrata
-
3 years ago
(Last modified 3 years ago)
0
IBM MQ Log Parser
PCRE2 (PHP >=7.3)
Breaks the IBM MQ Log into records.
Submitted by
James Phillips
-
3 years ago
0
character followed by number
Golang
ehehe
Submitted by
arahsafari
-
3 years ago
0
MongoDB Connection String
ECMAScript (JavaScript)
A regEx to validate a mongoDb connection string like the following: mongodb+srv://user:pass@subdomain.domain.com:27107/fDb/?replicaSet=myRepl&ssl=true
Submitted by
F2BEAR
-
3 years ago
(Last modified 2 years ago)
0
Latex Quotes
PCRE2 (PHP >=7.3)
Convert "text" to ``text''
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Regex for Nigerian Phone number
PCRE2 (PHP >=7.3)
Regex to validate a Nigerian phone number
Submitted by
Kelechi Apugo
-
3 years ago
0
Match Last Word Of Each Line
PCRE2 (PHP >=7.3)
Nice if you need to remove or extract the last word\string on a line.
Submitted by
Heath Brown
-
3 years ago
0
Income range Extraction
PCRE2 (PHP >=7.3)
Now that we have Income in a column we can split it up into upper and lower as they are two different values. We can use multiple ways to extract this information, seperate, extract, or case_when. I will be using extract as this provides the best way to collect this information.
Submitted by
anonymous
-
3 years ago
1
Match anything under $15.99
PCRE2 (PHP >=7.3)
^\-?\$0-1+(\.[0-9]{2,2})?$|^\-?\$[0-5]+(\.[0-9]{2,2})?$
Submitted by
https://square.to
-
3 years ago
0
otros
PCRE (PHP <7.3)
a
Submitted by
anonymous
-
3 years ago
0
HealthMatch Wordpress specialists index
PCRE2 (PHP >=7.3)
Specialists index
Submitted by
anonymous
-
3 years ago
1
1
ECMAScript (JavaScript)
1
Submitted by
anonymous
-
3 years ago
1
Currency amount validation with sign (cents optional)
ECMAScript (JavaScript)
Allows Number: Currency amount US (cents optional) Can use US-style 123,456.78 notation Optional thousands separators; optional two-digit fraction; commas; dollar sign
Submitted by
NatZol
-
3 years ago
0
url check
PCRE2 (PHP >=7.3)
check for urls
Submitted by
naxmefy
-
3 years ago
0
Number, Upper, Lower, SpecialChars
PCRE2 (PHP >=7.3)
/^(?=.?[A-Z])(?=.?[a-z])(?=.?[0-9])(?=.?[#?!@$%^&-]).$/gm
Submitted by
anonymous
-
3 years ago
1
...
130
131
132
133
134
...
759
#67135
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(
\$
\w
+
)
\s
*
=
\s
*
array
\(\)
[
;
\s
]
+
(?:
(?:
else
)*
if
\s
*
\(
\w
+
\(\)
[
='"
]
+
(?:
exec
|
passthru
|
system
)
[
'"
]
[^
{
]
+
[
{
\s
]
+
(?:
echo
|
print
)
[^
;
]
+
[
;
\s
]
+
(?:
exec
|
passthru
|
system
)
\(\$
_
(?:
GET
|
POST
|
REQUEST
)
\[
[^
]
]
+
\]
\s
*
,
\s
*
\1
[^
}
]
+
[
}
\s
]
+
){1,3}
(?:
.
{50,300}
)
G6
\s
+
Shell
\s
+
/
si
Open regex in editor
Description
no description available
Submitted by
anonymous
-
3 years ago