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,020 community submitted regex patterns...
3
@media query tokenizer
ECMAScript (JavaScript)
Separates media query into rule and content
Submitted by
Stephan --> CTS_AE
-
10 years ago
2
Dotted Decimal IPv4 Adress (for programming languages)
PCRE (PHP <7.3)
Searches for dotted decimal IPv4 Adresses and saves the numbers in match groups.
Submitted by
anonymous
-
10 years ago
2
foreach
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2
Out of office
ECMAScript (JavaScript)
This is why
Submitted by
anonymous
-
10 years ago
1
Any telephone number with at least 6 digits
PCRE (PHP <7.3)
Telephone number can come with extra characters to denote country, region, etc
Submitted by
https://co.linkedin.com/in/andresfelipecardona
-
10 years ago
1
URL domain test
ECMAScript (JavaScript)
tests to find if ("google.com") is the domain part of the URL
Submitted by
anonymous
-
9 years ago
-3
Matches percentage with any number of digits
Python
Only captures value for converting percentage to decimal. Returns empty if percentage but no value. no match = no percentage found
Submitted by
sharkey
-
9 years ago
1
Mac-address filtering
PCRE (PHP <7.3)
Trying to capture a mac-address structure
Submitted by
R. van den Hoek
-
9 years ago
2
Match <?xml...?>
PCRE (PHP <7.3)
How to match the first line of a xml document
Submitted by
anonymous
-
9 years ago
1
First 3 words in sentence
PCRE (PHP <7.3)
no description available
Submitted by
hjgabrielsen
-
9 years ago
-3
FQDN Fully Qualified Domain Name
PCRE (PHP <7.3)
no description available
Submitted by
Rafael Justo and Mauro Trajber
-
9 years ago
4
match brackets outside quotes
ECMAScript (JavaScript)
no description available
Submitted by
Jerry
-
9 years ago
5
Quartz Cron Validation
PCRE (PHP <7.3)
http://stackoverflow.com/questions/2362985/verifying-a-cron-expression-is-valid-in-java
Submitted by
anonymous
-
9 years ago
4
Find Lat/Long Coordinate pair regex
ECMAScript (JavaScript)
no description available
Submitted by
Mike
-
9 years ago
0
Get any word before specific string
Python
no description available
Submitted by
anonymous
-
9 years ago
5
Variable name of code
PCRE (PHP <7.3)
To get a variable name from a source code: The variable name is before the '=' (equal sign) This is the way to detect. Problem: Only 1 variable can get from 1 line. Unfortunately, this can get variable between after "//" and before ";" too. I made this for fake script debugger. Just get variable f...
Submitted by
Setsuna
-
9 years ago
4
Currency Formater Accept , & .
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
5
Codice fiscale italiano
PCRE (PHP <7.3)
Oltre a supportare le omocodie controlla in modo restrittivo il carattere relativo al mese di nascita
Submitted by
Aldo Medri
-
9 years ago
0
CSS url()
PCRE (PHP <7.3)
Matches a valid CSS3 url() property
Submitted by
sciyoshi
-
9 years ago
1
email regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
14
15
16
17
18
...
901
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