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
calibre book parse
Python
no description available
Submitted by
anonymous
-
9 years ago
2
Match 3 Repeating Numbers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
WindowsUpdate.log Line Breaker
PCRE (PHP <7.3)
This regex defines the end and the beginning of a WindowsUpdate.log event.
Submitted by
Dion Pezzimenti
-
9 years ago
2
anyword plus word
ECMAScript (JavaScript)
no description available
Submitted by
7 HJ
-
9 years ago
2
URI without Trailing Slash
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2
src of img tag
ECMAScript (JavaScript)
get contents of src attribute
Submitted by
me
-
9 years ago
2
Beautiful Regex for detecting Slack URL's
PCRE (PHP <7.3)
just lovely
Submitted by
the boiz aka ben and chris
-
9 years ago
2
Password Log
PCRE (PHP <7.3)
Matches a password that has been passed in as a url query parameter or in a post dictionary.
Submitted by
Anthony Miller
-
9 years ago
2
identity
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2
File name without extension from linux path
PCRE (PHP <7.3)
If given a linux file path match the filename without the extension. It extracts FileNameWithoutExtension into its own match group so that you can use it in things like Logstash Grok.
Submitted by
Chris Magnuson, by combining other peoples starting points
-
9 years ago
2
update match
PCRE (PHP <7.3)
no description available
Submitted by
ozarzu
-
9 years ago
2
English-Hungarian (non-/)obfuscated email adresses
PCRE (PHP <7.3)
Finds email addresses even when cleverly obfuscated in both english and hungarian
Submitted by
WolfyD
-
9 years ago
2
mask the credit card number
PCRE (PHP <7.3)
no description available
Submitted by
vj
-
9 years ago
2
Messages.properties language file validator
ECMAScript (JavaScript)
no description available
Submitted by
spec4u.net
-
9 years ago
2
Telefoonnummer
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2
Find PHP-like variables
ECMAScript (JavaScript)
Search a string for PHP-like variables starting with $, containing an unlimited number of non-whitespace characters and ending with a word boundary of any kind
Submitted by
Pascal Vorwerk
-
9 years ago
2
flex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2
Franklin Regex
Python
Testing Franklin related regex matching cases.
Submitted by
Arthur
-
9 years ago
2
Ultimate URL/IP validator
ECMAScript (JavaScript)
Validates most types of URL's and IP addresses. NOTICE! remove "?" after first non-capturing group to forse check protocol.
Submitted by
anonymous
-
9 years ago
2
capture balisephp
ECMAScript (JavaScript)
it's to use to get all tags. not easy to implement because some link in php with ? or > can make trouble to get the closure ?>
Submitted by
simon
-
9 years ago
1
...
865
866
867
868
869
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
*
#define
+
(
[
a
-
zA
-
Z
]
[
\w
]
*
)
\(
*
(
[
a
-
zA
-
Z_
]
\w
*
)
(?:
*
,
*
(
[
a
-
zA
-
Z_
]
\w
*
)
*
)
*
\)
*
(
.
+
)
*
$
/
gm
Open regex in editor
Description
Regular expression to match C macros specified with the #define directive.
Submitted by
Alejandro
-
2 years ago
(Last modified 2 years ago)