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
Community Patterns
Search among 4,660 community submitted regex patterns...
1
Semantic Version Parser/Validator
PCRE2 (PHP >=7.3)
A regex expression that extracts the components of a semantic version and fails if the version does not conform to the semantic version spec. Based on the 2.0.0 spec
Submitted by
Vespion
-
4 months ago
1
TermExtraction_Example
PCRE2 (PHP >=7.3)
Extracts Birth Place from Wikipedia Text
Submitted by
anonymous
-
5 months ago
1
Discord Anti-Advertisement 2
Rust
Pair this with my Discord AutoMod Anti Advertisement for full protection against invites. Use this with Discord's Built In AutoMod.
Submitted by
dogknife
-
5 months ago
(Last modified 3 months ago)
1
Find all hashtags
PCRE2 (PHP >=7.3)
This regex finds all hashtag (begin by #) in a whole string
Submitted by
Sébastien LHUILLIER
-
5 months ago
(Last modified 5 months ago)
1
Capture Paragraph Text in html
Python
TLDR: It can be used to capture all the paragraphs from some webnovel sites. *update: testing other sites, I've found it lacking. This is intended to match a tag and it's closing tag. It only matches and captures if there are no other html tags nested in the tag. There is room to adjust with the...
Submitted by
anonymous
-
5 months ago
(Last modified 5 months ago)
1
Discord Anti Advertisement
Rust
Discord AutoMod Regex Use this Regex with Discord's built-in automod to prevent all invite URLs. This will block discord.gg/ad but not .gg/ad Consider seeing my "strict" version otherwise.
Submitted by
dogknife
-
5 months ago
(Last modified 3 months ago)
1
Discord AutoMod Advert (Strict)
Rust
Use this with Discord automod. Bear in mind, this is "Strict" because it will block discord.gg/myad AND other links such as dsc.gg/myad
Submitted by
dogknife
-
5 months ago
(Last modified 3 months ago)
1
extract filename and contents
PCRE2 (PHP >=7.3)
extract filename and contents
Submitted by
anonymous
-
5 months ago
1
Match on period following single letter name initial for TTS Rendering without Pause
PCRE2 (PHP >=7.3)
Match on period following single letter name initial for TTS Rendering without Pause Specifically, matches all occurrences of period if preceded by capital letter. Used in T2S android tts app for rendering text without pausing after letter name initial.
Submitted by
Scott K
-
5 months ago
1
match hex colors
PCRE2 (PHP >=7.3)
Match hex colors with PCRE2
Submitted by
anonymous
-
5 months ago
1
Match ISO 639-1 language codes
PCRE2 (PHP >=7.3)
Match ISO 639-1 language codes
Submitted by
anonymous
-
5 months ago
1
Ansible Playbook Execution - Task Output
Python
Parse Task Titles and capture results/output of each task
Submitted by
Paul Cummings
-
5 months ago
1
datime
PCRE2 (PHP >=7.3)
datetime
Submitted by
anonymous
-
5 months ago
1
Google chat WebHook integration
PCRE2 (PHP >=7.3)
Regular match an URL integration to Google chat by WebHook
Submitted by
Vito Bryliano
-
5 months ago
1
12 hour time
PCRE2 (PHP >=7.3)
Use this expression to validate a 12 hour time input
Submitted by
Amit Sharma
-
5 months ago
1
Malaysian NRIC
PCRE2 (PHP >=7.3)
Strict Malaysian NRIC format check Version 2: Shorten with assertion
Submitted by
17Hieng
-
5 months ago
(Last modified 5 months ago)
1
URL
PCRE2 (PHP >=7.3)
Support any types of URL for https and http protocol. http or https [optional] domain name [mandatory] file path [optional] query parameter [optional]
Submitted by
17Hieng
-
5 months ago
(Last modified 5 months ago)
1
Custom Datetime Finder
PCRE2 (PHP >=7.3)
Determine date time parts
Submitted by
anonymous
-
5 months ago
(Last modified 5 months ago)
1
Get text after parenthesis.
Python
This regular expression helps to get the strings of a line that comes after a parenthesis and a blank space. Could be useful with lines of text with or similar format of the APA citation style: Author (year) title
Submitted by
anonymous
-
5 months ago
1
git-flow branch names
PCRE2 (PHP >=7.3)
This is the regex for our branch names.
Submitted by
stefanfrede
-
5 months ago
1
...
6
7
8
9
10
...
233
Email
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
(
[^
<>()[
\]\.
,;:
\s
@
\"
]
+
(
\.
[^
<>()[
\]\.
,;:
\s
@
\"
]
+
)*
)
|
(
\"
.
+
\"
)
)
@
(
(
[^
<>()[
\]\.
,;:
\s
@
\"
]
+
\.
)+
[^
<>()[
\]\.
,;:
\s
@
\"
]
{2,}
)
$
/
gm
Open regex in editor
Description
1
Submitted by
anonymous
-
2 years ago