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...
0
Commit Message - Header Pattern (Optimized)
PCRE (PHP <7.3)
git-stuff commit message header pattern.
Submitted by
jeffryangtoni24
-
6 years ago
0
Multi group regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Extract all emails from a document.
ECMAScript (JavaScript)
The following regex will extract email addresses from a document. Sample: This is the email: m23oeo_doc@gmail.com and this is john.doe@outlook.com also can use "," master1@yahoo.com, master2@yahoo.es etc. micro.so@aol.com.
Submitted by
anonymous
-
6 years ago
1
Detect JSON entries
PCRE (PHP <7.3)
This Regexp here has probably been done a ton of times, but I kind of figured one out here, so I decided to post it anyways. It may or may not be a duplicate, but this also will ignore any strings that a JSON entry may have so that it knows not to detect something if a value contains text like "som...
Submitted by
Ghostyrun
-
6 years ago
0
CIRRIS Occurrence Number
ECMAScript (JavaScript)
CIRRIS Occurrence Number Validator RegEx
Submitted by
Anthony
-
6 years ago
1
Extract columns names from any select query
Golang
This regex can capture any column name from a select query. Be the original name, like are named on table, renamed with a reserved word AS or even without explicit AS. Go on, and test with your query ;)
Submitted by
Jefferson Gouveia
-
6 years ago
0
nondigits - digits
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
parsing ini files
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Uptime command splitting to monitor average load
ECMAScript (JavaScript)
This is default regular expression used at Trafikito.com to split the output of a command into columns. Trafikito monitors Linux CPU, RAM and disk space or the output of any command. Then sends emails or makes API calls in the event that something goes wrong. Monitor your Linux machine for free a...
Submitted by
Trafikito.com
-
6 years ago
0
SpecialsChars ending
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
HK Mobile Regex
PCRE (PHP <7.3)
For number with 8 digits: Only allow number start with 4-9. http://www.cirrhosismedication.com http://happinesspig.com http://premiumpig.com http://pmsecret.com...
Submitted by
anonymous
-
6 years ago
0
regex_1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
PR364777
PCRE (PHP <7.3)
generic regex for all.
Submitted by
anonymous
-
6 years ago
0
removes leading zeros in a string separated by space
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
flunetd
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Include Anything but (string)
ECMAScript (JavaScript)
This RegEx uses a lookahead to say that anything BUT (string) will be valid
Submitted by
anonymous
-
6 years ago
1
toby regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Match CNSTANT_CASE with underscores
ECMAScript (JavaScript)
Matches only ABC_DEF, not: ABC__DEF _ABC_DEF __ABC_DEF ABC_DEF_ ABC_DEF__...
Submitted by
David Enke <david.enke@zalari.de>
-
6 years ago
0
CSS nth child expressions
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
0
ip_address
PCRE (PHP <7.3)
find an ip address in a string
Submitted by
anonymous
-
6 years ago
1
...
517
518
519
520
521
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
^.
*
?
]
\s
(?<severity>
\w
+
)
\s
+
(?<group>
[^
\[
]
+
)
\[
logno=
(?<object>
\d
+
)
\,
\s
+
user=
(?<login>
\w
+
)
\,
\s
+
usid=
(?<recipient>
\w
+
)
\,
\s
+
msg=
\"
(?<reason>
[^
"
]
*
)
\"
]
$
/
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
6 years ago