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 9,220 community submitted regex patterns...
2
filter tags and select text in between.
PCRE (PHP <7.3)
You can use it as a language selector.
Submitted by
koko
-
10 years ago
2
Minecraft Entity Target Splitter
PCRE (PHP <7.3)
Regex to match part of minecraft command entity targets
Submitted by
aziis98
-
10 years ago
2
Parse keywords from search string
PCRE (PHP <7.3)
no description available
Submitted by
@bananascript
-
10 years ago
2
parse images
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
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
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
PAN verification regex
PCRE (PHP <7.3)
Regex to verify PAN in India
Submitted by
Anirban
-
10 years ago
2
donotbackup
PCRE (PHP <7.3)
finding directories w/ donotbackup
Submitted by
anonymous
-
10 years ago
2
Finding a string along with a few other words
PCRE (PHP <7.3)
no description available
Submitted by
A.K. Asik
-
10 years ago
2
Extract Fields from Mailexpire
PCRE (PHP <7.3)
Given the HTML of an alias's control panel, apply the XPath "//span[@class='maintext']". The second result returned can be parsed by this regex to yield the most pertinent field names and their values.
Submitted by
Crumeniferus
-
10 years ago
2
Route Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2
Array formatting (serialized)
PCRE (PHP <7.3)
Check for correctly formatted array of this type: array( array('name'=>'War and Peace', 'year'=>1865), array('name'=>'Different Seasons', 'year'=>1982), )
Submitted by
oneperfectsunrise
-
10 years ago
2
paren strip test
PCRE (PHP <7.3)
paren strip test
Submitted by
marie bacuno
-
10 years ago
2
Dice Regex with Modifier
PCRE (PHP <7.3)
no description available
Submitted by
derek robati
-
10 years ago
2
filter noreply-ish e-mail addresses
PCRE (PHP <7.3)
no reply e-mail addresses don't want to receive a reply. Unfortunately, not all no reply e-mail addresses are formatted like noreply@domain.tld, so in order to catch as many of them as possible I made this regular expression which matches many forms of no reply e-mail addresses.
Submitted by
anonymous
-
10 years ago
2
Match domain part in Http(s) URLs
PCRE (PHP <7.3)
no description available
Submitted by
Nilratan
-
10 years ago
2
Dim name
PCRE (PHP <7.3)
Gets all variable names
Submitted by
Tyrone Moodley
-
10 years ago
2
File filtering by extension
PCRE (PHP <7.3)
You would like to scan a folder containing many files (Example : *.pb, *.pbi, *.pbp and *.pbf) and you are interested only by two type of files (example : *.pb and *.pbi). This expression will match only if extension match (in this case *.pb and *.pbi) otherwise no reaction. Feel free to change file...
Submitted by
StarBootics
-
10 years ago
2
Gentoo atom parsing
PCRE (PHP <7.3)
no description available
Submitted by
selurvedu
-
10 years ago
1
...
10
11
12
13
14
...
461
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