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,820 community submitted regex patterns...
1
match review count
PCRE2 (PHP >=7.3)
match review count
Submitted by
anonymous
-
2 months ago
(Last modified 2 months ago)
1
parse audio block
PCRE2 (PHP >=7.3)
parse audio block
Submitted by
anonymous
-
2 months ago
1
match amz data
PCRE2 (PHP >=7.3)
匹配当前路径
Submitted by
anonymous
-
2 months ago
1
Varde kommune Danish CPR validation
PCRE2 (PHP >=7.3)
To match all CPR numbers only with validt dates
Submitted by
John Pedersen
-
2 months ago
1
Calendar Versioning
PCRE2 (PHP >=7.3)
Best effort to validate/match only strings compliant with Calendar Versioning
Submitted by
Matthew Watkins
-
2 months ago
1
SNILS (СНИЛС) 2025
PCRE2 (PHP >=7.3)
Two different patterns to verify SNILS
Submitted by
anonymous
-
2 months ago
1
Windows Registry files RegEx
PCRE2 (PHP >=7.3)
A regular expression for separating Key/Value pairs.
Submitted by
anonymous
-
2 months ago
1
Telegram Bot API token
PCRE2 (PHP >=7.3)
Telegram Bot API token
Submitted by
anonymous
-
2 months ago
1
Parse markdown table header and column
PCRE2 (PHP >=7.3)
Parse markdown table header and column
Submitted by
anonymous
-
2 months ago
1
Practica 1
PCRE2 (PHP >=7.3)
ejer hechos 1,2,3,4,5,6,7
Submitted by
aita
-
2 months ago
(Last modified 2 months 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
-
2 months ago
(Last modified 2 months 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
-
2 months ago
1
renovate-config - regexp
PCRE2 (PHP >=7.3)
This regexp can be used to parse renovate configurations from files.
Submitted by
Volker Raschek
-
3 months ago
(Last modified 20 days ago)
1
Style attribute regex
PCRE2 (PHP >=7.3)
Style attribute regex
Submitted by
anonymous
-
3 months ago
1
.
PCRE2 (PHP >=7.3)
.
Submitted by
anonymous
-
3 months ago
1
IP address matcher
PCRE2 (PHP >=7.3)
matches any valid ip and captures the ip and port
Submitted by
Artyui
-
3 months ago
(Last modified 3 months 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
-
3 months 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
-
3 months ago
(Last modified 3 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
-
3 months ago
2
X-Trim (All-in-One Trimmer - Space Sanitizer)
PCRE2 (PHP >=7.3)
Regex Pattern ^\s+|\s+$|(\s)\s+ Replacement $1 ...
Submitted by
Fernando Abritta
-
3 months ago
1
2
3
4
...
141