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...
9
Fixo LDN CSP e SEM CSP
PCRE (PHP <7.3)
no description available
Submitted by
Marcos Müller
-
10 years ago
1
celular com CSP e SEM CSP
PCRE (PHP <7.3)
no description available
Submitted by
Marcos Müller
-
10 years ago
4
Simple Linux File Absolute Path Tester
PCRE (PHP <7.3)
Match simple linux file absolute path as /usr/share/my-folder/helloworld.jpg
Submitted by
FLonpl6
-
10 years ago
26
match valid JSON
PCRE (PHP <7.3)
Matches any valid JSON object, matches recursively. Passes all JSON test cases I found.
Submitted by
Mateon1
-
10 years ago
0
Search string parser (PHP).
PCRE (PHP <7.3)
A simple regexp to parse a search string. It will split the search string into an array of search terms. Each search term will be represented by an array containing 3 strings: ...
Submitted by
@bananascript
-
10 years ago
1
Cross-Platform Simple Email Validator
PCRE (PHP <7.3)
Not perfect, but solid and cross platform
Submitted by
anonymous
-
10 years ago
1
Simple Email Validation
ECMAScript (JavaScript)
Does not match everything, but good for a cross-platform validation filter.
Submitted by
anonymous
-
10 years ago
1
Temp
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
incorrect number regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2
replace only inner text without tag element
PCRE (PHP <7.3)
no description available
Submitted by
A.K. Asik
-
10 years ago
1
replace only inner text without tag element
PCRE (PHP <7.3)
no description available
Submitted by
A.K. Asik
-
10 years ago
1
Simple first exercise of a newbie
ECMAScript (JavaScript)
Find a group of 9 letters subdivided in groups of three by a dash.
Submitted by
Nicola Jelmorini
-
10 years ago
-2
Deleting everything except words starting with “#â€
PCRE (PHP <7.3)
no description available
Submitted by
A. K. Asik
-
10 years ago
1
Mustafa Özcan
PCRE (PHP <7.3)
mustafa özcan
Submitted by
<a href="http://www.mustafaozcan.info/" title="mustafa özcan">mustafa
-
10 years ago
0
IPv4 private network address
PCRE (PHP <7.3)
Check if the given string is a private address
Submitted by
Loïc Rameau
-
10 years ago
-1
street address Checker and fetcher
PCRE (PHP <7.3)
Check provided street address is valid or not and also fetch it's all components.
Submitted by
Dilip Borad
-
10 years ago
1
Extract ids (values) with regex
PCRE (PHP <7.3)
no description available
Submitted by
A. K. Asik
-
10 years ago
3
javascript template replacement
ECMAScript (JavaScript)
no description available
Submitted by
akamaozu
-
10 years ago
0
Regex Mobile Number Validation Code
PCRE (PHP <7.3)
no description available
Submitted by
A.K. Asik
-
10 years ago
1
sad smiley
Python
looks for a sad smiley with a backslash
Submitted by
@barraponto
-
10 years ago
1
...
869
870
871
872
873
...
900
Community Library Entry
7
Regular Expression
ECMAScript (JavaScript)
/
if
\s
*
\(
(
.
+
?
)
\)
\s
*
{
(
.
*
?
)
}
\s
*
?
(
else
\s
*
?
if
\s
*
?
\(
(
.
+
?
)
\)
\s
*
?
{
.
*
?
}
)?
\s
*
?
(
else
\s
*
?
{
(
.
*
?
)
}
)?
/
Open regex in editor
Description
matches full if condition statment eg: if(condition){ ... } else if(condition){ ... }else{ ... }
Submitted by
Ivan Jakesevic
-
10 years ago