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,040 community submitted regex patterns...
1
split URL in protokoll, domain, file(with path), parameter and anker
PCRE (PHP <7.3)
split URL in protokoll, domain, file(with path), parameter and anker
Submitted by
Candyman1332
-
9 years ago
6
Find and extract email domain
Python
Find and extract email domain. Ex: test@example.pt -> extract 'example.pt'
Submitted by
Fnxk
-
9 years ago
4
Timestamp
PCRE (PHP <7.3)
12.04.1975T03:02:00.88 With milliseconds and T seperator. Excludes most invalid dates, except 30/31ths of month, leap years/february heaving only 29/28.
Submitted by
anonymous
-
9 years ago
4
Skype ConversationText Extraction
PCRE (PHP <7.3)
When you copy a skype conversation and paste it in a text area then it includes timestamps, User's name and whether or not the message had been edited. This matches all of those in seperate groups for easy substitution
Submitted by
Zalatos
-
9 years ago
5
Bible reference extractor
Python
For scraping http://skepticsannotatedbible.com/
Submitted by
antaytheist-owner
-
9 years ago
4
Get image tag attributes
PCRE (PHP <7.3)
no description available
Submitted by
AgustÃn Bouillet
-
9 years ago
4
1st TSV
PCRE (PHP <7.3)
no description available
Submitted by
DynV
-
12 years ago
1
Twitter Hashtags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
3
Get Nth value (3 times)
PCRE (PHP <7.3)
capture Nth character from string, 3 times
Submitted by
K.
-
11 years ago
-1
Substitutin
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
Matching an Email
ECMAScript (JavaScript)
no description available
Submitted by
appsunited
-
11 years ago
0
Improved regex101 ID grabber (fixed)
PCRE (PHP <7.3)
no description available
Submitted by
Oleksandr Sochka
-
11 years ago
4
Hungarian ANDOK system id
PCRE (PHP <7.3)
no description available
Submitted by
Tana
-
11 years ago
1
IPv4 extraction
Python
no description available
Submitted by
Jacob
-
11 years ago
-3
Latitude/longitude tester
PCRE (PHP <7.3)
Tests the string if it does contain valid latitude and longitude parameters
Submitted by
Doro
-
11 years ago
4
REGEX to parse IIS7 Log File into FluentD
PCRE (PHP <7.3)
This regex parses the entire line of the IIS log files (without detail on the AgentID) for usage into FluentD. Q&C - juan.carniglia@gmail.com
Submitted by
Juan Carniglia
-
11 years ago
1
quoted string in VB.net format
Python
Get all strings in vb.net format (even nested quotes"
Submitted by
Alan Moore (http://stackoverflow.com/questions/2148587/finding-quoted-strings-with-escaped-quotes-in-c-sharp-using-a-regular-expression) modified by j
-
11 years ago
3
split URL into location-resource-params
PCRE (PHP <7.3)
Extract resource location, name and query parameters from a URL
Submitted by
cebence
-
11 years ago
1
MAtch all lines starting with # to remove em
PCRE (PHP <7.3)
no description available
Submitted by
Jactaest
-
11 years ago
2
HTTP url parser
PCRE (PHP <7.3)
Parses a URL to the different parts
Submitted by
AmitK
-
10 years ago
1
...
12
13
14
15
16
...
902
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