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
Highest Score
Lowest Score
Most upvotes
Most downvotes
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 3,060 community submitted regex patterns...
1
Match File Extensions (e.g., .pdf, .docx)
PCRE2 (PHP >=7.3)
WebRetailBlog.com
Submitted by
anonymous
-
a month ago
1
Match Common Email Providers
PCRE2 (PHP >=7.3)
acornapp.co
Submitted by
anonymous
-
a month ago
1
Match HTML Meta Tags
PCRE2 (PHP >=7.3)
blabnote.com
Submitted by
anonymous
-
a month ago
1
Match HTML Document Structure
PCRE2 (PHP >=7.3)
AreLink.net
Submitted by
anonymous
-
a month ago
1
Match Valid MAC Address with Hyphens
PCRE2 (PHP >=7.3)
ArtsOfMaya.com
Submitted by
anonymous
-
a month ago
1
Match HTTP Headers
PCRE2 (PHP >=7.3)
BandSwap.org
Submitted by
anonymous
-
a month ago
1
Match URL Query Parameters
PCRE2 (PHP >=7.3)
IsHimMarketing.com
Submitted by
anonymous
-
a month ago
1
Match Common HTML Attributes
PCRE2 (PHP >=7.3)
NoteAbleLists.com
Submitted by
anonymous
-
a month ago
1
Match Valid CSS Units (px, em, %, etc.)
PCRE2 (PHP >=7.3)
amazingtoptens.com
Submitted by
anonymous
-
a month ago
1
Match Decimal Numbers (Optional Fraction)
PCRE2 (PHP >=7.3)
buzzmeone.com
Submitted by
anonymous
-
a month ago
1
Match Date in ISO 8601 Format
PCRE2 (PHP >=7.3)
ekindesigns.com
Submitted by
anonymous
-
a month ago
1
Match File Paths (Unix Style)
PCRE2 (PHP >=7.3)
gbtvtalk.com
Submitted by
anonymous
-
a month ago
1
Match Common Programming Keywords (e.g., class, function)
PCRE2 (PHP >=7.3)
mitroaccess.com
Submitted by
anonymous
-
a month ago
1
Match 24-Hour Time with Optional Seconds
PCRE2 (PHP >=7.3)
touch-notes.com
Submitted by
anonymous
-
a month ago
1
Match Valid CSS Properties
PCRE2 (PHP >=7.3)
AlpineAngels.net
Submitted by
anonymous
-
a month ago
1
Match Non-Whitespace Characters
PCRE2 (PHP >=7.3)
BestTechTime.com
Submitted by
anonymous
-
a month ago
1
Match US ZIP Code and Extension
PCRE2 (PHP >=7.3)
ButFirstCreate.com
Submitted by
anonymous
-
a month ago
1
Match Optional URL Path
PCRE2 (PHP >=7.3)
EducationalPage.net
Submitted by
anonymous
-
a month ago
1
Match Valid UUID v4
PCRE2 (PHP >=7.3)
LariMedia.org
Submitted by
anonymous
-
a month ago
1
Match IP Address with Port Number
PCRE2 (PHP >=7.3)
Movin4Life.org
Submitted by
anonymous
-
a month ago
1
...
43
44
45
46
47
...
153
Regex for C-style assignments
0
Regular Expression
Golang
`
(
(
(
(?P<Keys>
dword
|
word
|
byte
|
int
)
[
\n\t
]
+
)
(
(?P<Names>
[
a
-
zA
-
Z0
-
9
_
\-\$
]
+
)
)
)
(
(
\[
(?P<Range>
[
a
-
zA
-
Z0
-
9
\t\n
]
+
)
\]
[
\t\n
]
+
)
|
(?P<Pointer>
[
*
\t\n
]
+
)
|)
(
(
=
[
\n\t
]
+
)
(
[
&*"a
-
zA
-
Z0
-
9
]
+
)
)
(
;
)
)
|
(
(
(?P<Others>
int
|
string
|
word
)
[
\t\n
]
+
)
(
[
a
-
zA
-
Z0
-
9
\n\t
]
+
)
(
;
)
)
`
g
Open regex in editor
Description
no description available
Submitted by
cemares
-
7 years ago