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
Simple date input checker
PCRE2 (PHP >=7.3)
Initial date format: DD.MM.YYYY. Use additional user code to check if new Date(year, month, day) equal to initial input day.month.year Script (typescript): ...
Submitted by
anonymous
-
4 days ago
(Last modified 4 days ago)
1
match review count
PCRE2 (PHP >=7.3)
match review count
Submitted by
anonymous
-
5 days ago
(Last modified 5 days ago)
1
parse audio block
PCRE2 (PHP >=7.3)
parse audio block
Submitted by
anonymous
-
8 days ago
1
match amz data
PCRE2 (PHP >=7.3)
匹配当前路径
Submitted by
anonymous
-
9 days ago
1
Varde kommune Danish CPR validation
PCRE2 (PHP >=7.3)
To match all CPR numbers only with validt dates
Submitted by
John Pedersen
-
11 days ago
1
Calendar Versioning
PCRE2 (PHP >=7.3)
Best effort to validate/match only strings compliant with Calendar Versioning
Submitted by
Matthew Watkins
-
11 days ago
1
SNILS (СНИЛС) 2025
PCRE2 (PHP >=7.3)
Two different patterns to verify SNILS
Submitted by
anonymous
-
12 days ago
1
Windows Registry files RegEx
PCRE2 (PHP >=7.3)
A regular expression for separating Key/Value pairs.
Submitted by
anonymous
-
19 days ago
1
Telegram Bot API token
PCRE2 (PHP >=7.3)
Telegram Bot API token
Submitted by
anonymous
-
23 days ago
1
Parse markdown table header and column
PCRE2 (PHP >=7.3)
Parse markdown table header and column
Submitted by
anonymous
-
24 days ago
1
Practica 1
PCRE2 (PHP >=7.3)
ejer hechos 1,2,3,4,5,6,7
Submitted by
aita
-
a month ago
(Last modified 25 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
-
a month ago
(Last modified a month 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
-
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
-
a month ago
1
Style attribute regex
PCRE2 (PHP >=7.3)
Style attribute regex
Submitted by
anonymous
-
a month ago
1
.
PCRE2 (PHP >=7.3)
.
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
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
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
-
2 months ago
(Last modified 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
-
2 months ago
1
2
3
...
140