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 12,980 community submitted regex patterns...
1
date Format
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
assertion (lookbehind and lookahead)
PCRE (PHP <7.3)
no description available
Submitted by
adri et nico
-
9 years ago
1
looking for a word of 4 letter
PCRE (PHP <7.3)
look for a word of 4 letter with the look behind and look ahead
Submitted by
balzrog & torb500
-
9 years ago
1
Parse JS expression string
PCRE (PHP <7.3)
This expression is used to parse strings like category.slug==smartphone&&request.user_id==12
Submitted by
Phaeton
-
9 years ago
1
mail
PCRE (PHP <7.3)
mail
Submitted by
anonymous
-
9 years ago
1
Split user agent into groups
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Setting Conversion - Original
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
input variable legnth string to group
PCRE (PHP <7.3)
select leading X digits, remove zero if present, and insert 6 or 7 digit length into a name group
Submitted by
anonymous
-
9 years ago
1
Backline
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Replace comma in brackets
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Match zero-trimmed, quarter increment number
ECMAScript (JavaScript)
000.250 => 0.25 1.1 => 1 0.0 => 0
Submitted by
Paul Erickson
-
9 years ago
1
get rid of hash tag
ECMAScript (JavaScript)
no description available
Submitted by
LittlePiggy
-
9 years ago
1
pattern
PCRE (PHP <7.3)
lookahead
Submitted by
Kmna
-
9 years ago
1
removing a match (Date timefield)
PCRE (PHP <7.3)
trimming unwanted timestamps
Submitted by
Kmna
-
9 years ago
1
drupal 7 fix conditional fields Features export
PCRE (PHP <7.3)
intended for JetBrains IDEs regex find/replace
Submitted by
anonymous
-
9 years ago
1
Domain Regex (line start)
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
Lua Symbol Recognizer
ECMAScript (JavaScript)
Recognizes the set of all Lua symbols
Submitted by
Nicholas Barrett
-
9 years ago
1
Butle_UPMC_Match
PCRE (PHP <7.3)
Work for BHS
Submitted by
Brian Mulhall
-
9 years ago
1
SLICING A PATTERN
PCRE (PHP <7.3)
YEAR_MONTH_DAY HOUR_MINUTE_SECOND (UTC)
Submitted by
Kmna
-
9 years ago
1
SP ZONE SEARCH PATTERN
PCRE (PHP <7.3)
no description available
Submitted by
Woohoo
-
9 years ago
1
...
459
460
461
462
463
...
649
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