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 2,800 community submitted regex patterns...
1
CSharp Discover Duplicate Keys in Dictionary
PCRE2 (PHP >=7.3)
Find dups in keys, and throughout as a sanity check.
Submitted by
Hooge
-
2 months ago
1
ChatGPT markdown
PCRE2 (PHP >=7.3)
Convert ChatGPT markdown formula to $ format. You should use _substitution _ mode, and input ${1:+\$:\n\$\$\n}
Submitted by
lexatang
-
2 months ago
(Last modified 2 months ago)
1
find amz kindle file size
PCRE2 (PHP >=7.3)
use .*?
Submitted by
anonymous
-
2 months ago
1
VTT to LRC
PCRE2 (PHP >=7.3)
Converts VTT (subtitle) files to LRC.
Submitted by
kagamin
-
2 months ago
1
radarr avoid multi
PCRE2 (PHP >=7.3)
Avoids multi movies in radarr
Submitted by
anonymous
-
2 months ago
1
replace contiguous strings of same character A prefixed with a word by B
PCRE2 (PHP >=7.3)
$input = "I am the letter LETTERAAAAAAAAAA like AAAlpha AAAAnd I will always be the first in LETTERAAAAAlphabet."; $output = preg_replace('/(?:\G|(LETTER))A/', '$1B', $input); echo $output; Expected output: I am the letter LETTERBBBBBBBBBB like AAAlpha AAAAnd I will always be the first in LETTERBBB...
Submitted by
Davd Blanchard
-
a month ago
1
Change YYYY-MM-DD to Wikilink in Obsidian
PCRE2 (PHP >=7.3)
Change YYYY-MM-DD to Wikilink in Obsidian This regex changes YYYY-MM-DD to "[[YYYY-MM-DD]]" for Obsidian
Submitted by
Swen Larsen
-
a month ago
(Last modified a month ago)
1
Parse spcies name and coefficient in a species term
PCRE2 (PHP >=7.3)
A chemichal species has a species name like O2 or N3 The coefficient is how many of such molecules (the number of front) 2 O2 === 2 is the species
Submitted by
anonymous
-
a month ago
1
IP address matcher
PCRE2 (PHP >=7.3)
matches any valid ip and captures the ip and port
Submitted by
Artyui
-
a month ago
(Last modified a month ago)
1
.
PCRE2 (PHP >=7.3)
.
Submitted by
anonymous
-
a month ago
1
Style attribute regex
PCRE2 (PHP >=7.3)
Style attribute regex
Submitted by
anonymous
-
a month ago
1
renovate-config - regexp
PCRE2 (PHP >=7.3)
This regexp can be used to parse renovate configurations from files.
Submitted by
Volker Raschek
-
25 days ago
1
Match EMail
PCRE2 (PHP >=7.3)
This regular expression matches emails, params: EMail name: only latin, numbers, spec chars like line or dots. EMail domain: any characters, after dot should be minimum 2 letters. Look for examples how it will be matched in edit
Submitted by
Anonymous
-
22 days ago
1
SAML extract Attribute Values from specified Attribute
PCRE2 (PHP >=7.3)
This regex extracts Attribute Values from specified Attribute Name. Only known edge case is if a tag is the first tag in the string, but it shouldn't be the case for SAML responses It can easily adapted to do the same type of extract from an XML tag containing multiple tags containing values
Submitted by
Skerilyo
-
22 days ago
(Last modified 21 days ago)
1
Practica 1
PCRE2 (PHP >=7.3)
ejer hechos 1,2,3,4,5,6,7
Submitted by
aita
-
16 days ago
(Last modified 15 days ago)
1
Parse markdown table header and column
PCRE2 (PHP >=7.3)
Parse markdown table header and column
Submitted by
anonymous
-
15 days ago
1
Telegram Bot API token
PCRE2 (PHP >=7.3)
Telegram Bot API token
Submitted by
anonymous
-
13 days ago
1
Windows Registry files RegEx
PCRE2 (PHP >=7.3)
A regular expression for separating Key/Value pairs.
Submitted by
anonymous
-
9 days ago
1
SNILS (СНИЛС) 2025
PCRE2 (PHP >=7.3)
Two different patterns to verify SNILS
Submitted by
anonymous
-
3 days ago
1
Calendar Versioning
PCRE2 (PHP >=7.3)
Best effort to validate/match only strings compliant with Calendar Versioning
Submitted by
Matthew Watkins
-
2 days ago
1
...
50
51
52
53
54
...
140