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...
2
log4j log parsing
PCRE (PHP <7.3)
This pulls out all the fields in a log4j field. Suitable for use in a Logstash Grok pattern or similar
Submitted by
Robin Kearney
-
10 years ago
2
Parse keywords from search string
PCRE (PHP <7.3)
no description available
Submitted by
@bananascript
-
10 years ago
2
python regex
Python
no description available
Submitted by
anonymous
-
10 years ago
2
parse images
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2
Regex Capture String
PCRE (PHP <7.3)
Capture out Parts using regular expressions
Submitted by
Brandon
-
10 years ago
2
Li match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2
Replace text domain in WP i18n
PCRE (PHP <7.3)
This will find all instances where the WP i18n function __() is used, and change the text domain to something else. This will recognize instances of the function use as separate, even if they appear in the same function
Submitted by
Xedin Unknown
-
10 years ago
2
Date validator for mm/dd/yy
ECMAScript (JavaScript)
no description available
Submitted by
Dheeraj Khushalani - dotnetguy.net
-
10 years ago
2
Match 4chan thread URL
ECMAScript (JavaScript)
Matches a 4chan thread URL, see the examples
Submitted by
Zeke Sonxx <github.com/zekesonxx>
-
10 years ago
2
find numeric groups in strings
PCRE (PHP <7.3)
no description available
Submitted by
Vovan
-
10 years ago
2
SO “00000000000000000000000000000†is match to Regex “^[1-9]|0$†in .N
PCRE (PHP <7.3)
Test regex for question.
Submitted by
pwas
-
10 years ago
2
log trillian
Python
no description available
Submitted by
NTP-[SADAS]
-
10 years ago
2
PAN verification regex
PCRE (PHP <7.3)
Regex to verify PAN in India
Submitted by
Anirban
-
10 years ago
2
fail2ban real expression for w00tw00t
PCRE (PHP <7.3)
A real fai2ban expression for w00tw00t with alias substitution
Submitted by
MarcD
-
10 years ago
2
Positive Numbers greater than 0 with leading zeroes.
ECMAScript (JavaScript)
Accepts all positive numbers above 0. Accepts numbers with leading zeroes e.g.: 0123, 00123.
Submitted by
Sandeep Ranka
-
10 years ago
2
e164 format
ECMAScript (JavaScript)
e164 format
Submitted by
anonymous
-
10 years ago
2
phone regex
ECMAScript (JavaScript)
Match phone number with extensions or not
Submitted by
Mélissa Dumont
-
10 years ago
2
donotbackup
PCRE (PHP <7.3)
finding directories w/ donotbackup
Submitted by
anonymous
-
10 years ago
2
Regular Expression For Date
ECMAScript (JavaScript)
Regular expression for asp:RegularExpressionValidator with format MMddyy. i have Resolved leap year issue as well as month ending day issue with Regular expression
Submitted by
Priyanka Khadilkar
-
10 years ago
2
Email validation
ECMAScript (JavaScript)
Very crude, but effective email validation.
Submitted by
Ryan Oaks
-
10 years ago
1
...
858
859
860
861
862
...
902
Community Library Entry
0
Regular Expression
Python
r"
^\s
*
#
\s
*
(
define
|
DEFINE
)
\s
+
(?P<name>
\w
+
)
(?P<params>
\(
[
\w
\,
\s
]
+
\)
)?
\s
+
(?P<body>
.
*
)
(?:
(
//
)
|
(
\*
/
)
|
(
/
\*
)
)?
"
gmi
Open regex in editor
Description
parsing armas sqf preprocessor defines
Submitted by
anonymous
-
2 years ago