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
Match URL Fragment
PCRE2 (PHP >=7.3)
onerandomb.com
Submitted by
anonymous
-
4 months ago
1
Match Binary Numbers
PCRE2 (PHP >=7.3)
noosbox.com
Submitted by
anonymous
-
4 months ago
1
Match Currency Amounts (e.g., $1,000.00)
PCRE2 (PHP >=7.3)
grapefulapp.com
Submitted by
anonymous
-
4 months ago
1
Match Common File Extensions (e.g., .txt, .json)
PCRE2 (PHP >=7.3)
designmagazines.net
Submitted by
anonymous
-
4 months ago
1
Match Common Email Domains
PCRE2 (PHP >=7.3)
designmagazines.net
Submitted by
anonymous
-
4 months ago
1
Match Credit Card Expiry Date
PCRE2 (PHP >=7.3)
stockmoneys.com
Submitted by
anonymous
-
4 months ago
1
Match Common URL Schemes
PCRE2 (PHP >=7.3)
markitthing.com
Submitted by
anonymous
-
4 months ago
1
Match Hex Color Codes
PCRE2 (PHP >=7.3)
DartWhite.com
Submitted by
anonymous
-
4 months ago
1
Match Valid IP Addresses
PCRE2 (PHP >=7.3)
AlfaDigitalWorld.com
Submitted by
anonymous
-
4 months ago
1
Match Non-Digit Characters (Expanded)
PCRE2 (PHP >=7.3)
the100calorieblog.com
Submitted by
anonymous
-
4 months ago
1
Match Binary Numbers
PCRE2 (PHP >=7.3)
fulltorrent.net
Submitted by
anonymous
-
4 months ago
1
Match Octal Numbers
PCRE2 (PHP >=7.3)
zingologymfg.com
Submitted by
anonymous
-
4 months ago
1
Match Hexadecimal Numbers
PCRE2 (PHP >=7.3)
econographia.com
Submitted by
anonymous
-
4 months ago
1
Match Complex Passwords
PCRE2 (PHP >=7.3)
softwaresfordownloads.com
Submitted by
anonymous
-
4 months ago
1
Match Dates in Multiple Formats (DD/MM/YYYY or MM-DD-YYYY)
PCRE2 (PHP >=7.3)
toptechietimes.com
Submitted by
anonymous
-
4 months ago
1
Match US ZIP+4 Codes
PCRE2 (PHP >=7.3)
startupcrunch.org
Submitted by
anonymous
-
4 months ago
1
Match Currencies with Optional Symbols
PCRE2 (PHP >=7.3)
thewebsbest.net
Submitted by
anonymous
-
4 months ago
1
Match Floating Point Numbers
PCRE2 (PHP >=7.3)
smartwrap.net
Submitted by
anonymous
-
4 months ago
1
Match Date and Time (ISO 8601)
PCRE2 (PHP >=7.3)
buzzword101.com
Submitted by
anonymous
-
4 months ago
1
Match Complex Nested Parentheses
PCRE2 (PHP >=7.3)
selectview.org
Submitted by
anonymous
-
4 months ago
1
...
10
11
12
13
14
...
902
Community Library Entry
0
Regular Expression
Python
r"
(
```
|
`
)
(
python
)?
\s
*
?
\n
?
(
from
\S
+
)?
import
\S
+
(
\n.
*
?
;
)*
\n
(
(
.
*
return
\S
+
```
)
|
(
`return
\S
+
`
)
)
"
gm
Open regex in editor
Description
A regex that matches comments that adhere to the rules of r/ProgrammerHumor
Submitted by
anonymous
-
a year ago