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 18,000 community submitted regex patterns...
0
WORD not between two apex
PCRE (PHP <7.3)
search a WORD iff isn't between two apex. example: attribute="abc WORD abc" abc WORD, 'abc WORD "abc MATCHES: 2nd and 3th WORD
Submitted by
White Dragon
-
8 years ago
0
filestore directory
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
filestore filename
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Enclose <div> tag with <p> tag when inside <p> tag
PCRE (PHP <7.3)
Change the tags only when they are within a tag.
Submitted by
LukStorms
-
8 years ago
0
version tag
PCRE (PHP <7.3)
Verify if the given text is a version tag, like git tags for versions in the git flow method
Submitted by
bruno-delfino1995
-
8 years ago
0
Get shortcode
PCRE (PHP <7.3)
Get shortcode
Submitted by
khiconit
-
8 years ago
0
filename and extension
PCRE (PHP <7.3)
no description available
Submitted by
4B1D F4DL14N N
-
8 years ago
0
po box extracter
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
Check not minified file
PCRE (PHP <7.3)
This regex will match only filenames not containing the ".min" marker
Submitted by
anonymous
-
8 years ago
0
UK phone numbers
PCRE (PHP <7.3)
Source: http://stackoverflow.com/questions/36777840/how-to-validate-phone-number-in-laravel-5-2 Thanks to: Nady Shalaby
Submitted by
Nady Shalaby
-
8 years ago
0
Facebook embedded video
Python
no description available
Submitted by
anonymous
-
8 years ago
0
Duplicate word match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Find comments block in the source code.
ECMAScript (JavaScript)
This pattern finds comments block in the source code.
Submitted by
giraysam
-
8 years ago
0
P1 registers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
regex for finding url
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Divide URL
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
0
URL query param
Python
A solution for capture set/unset/catch a value of param query of URLs. Here is a example code that applies this pattern in JS, but JS doesn't have support to lookbehind.
Submitted by
Rafael Laurindo
-
8 years ago
0
redirections catégorie ordinateur-portable
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
A complete recognition of HTML elements pattern.
ECMAScript (JavaScript)
no description available
Submitted by
Rafael Laurindo
-
8 years ago
1
2
3
4
5
...
900
Community Library Entry
1
Regular Expression
PCRE2 (PHP >=7.3)
/
(
|
if
\s
*
|
IF
|
\s
*
and
\s
*
|
\s
*
AND
\s
*
|
\s
*
or
\s
*
|
\s
*
OR
\s
*
)
(
\[
[
a
-
zA
-
Z
\d
\.
_=
]
*
\]
)
\s
*
(
>=
|
<=
|
<
|
>
|
!=
|
==
|
\|\|
)
\s
*
(
"
(
.
*
)
"
|
(
-
[
\d
]
*
|
[
\d
]
*
)
)
/
gm
Open regex in editor
Description
Some if confitions
Submitted by
anonymous
-
6 months ago
(Last modified 6 months ago)