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 18,040 community submitted regex patterns...
1
Codeblocks
ECMAScript (JavaScript)
Combat md.replace(regex, "") and md.replace("`", "") to replace Markdown codeblocks with HTML ones
Submitted by
Rix
-
3 years ago
0
Parsing text between '[' and ']' unlimited number of times
Python
Using capturing group to match any text between [ and ] Test string '([Total Revenue] + [COGS] + [Distribution Costs] + [Sales Force Costs] + [A&P Costs] + [NDA Affairs Costs] + [Other Operating Costs]) * - [NDA share]'
Submitted by
anonymous
-
3 years ago
0
mac address validation
PCRE2 (PHP >=7.3)
mac address validation in hex or decimal form
Submitted by
planetwatch.io
-
3 years ago
0
css class
PCRE (PHP <7.3)
css class
Submitted by
anonymous
-
3 years ago
0
Parse m3u8 IPTV playlist
PCRE2 (PHP >=7.3)
$1 or $channel = channel name $2 or $bullshit = text to ignore $3 or $url = channel url "HD" inside of `` group is search string to find all channels (with their urls) which names contain it. Feel free to play around with it.
Submitted by
https://axenov.dev
-
3 years ago
0
phone number matcher
Java 8
phone number matcher
Submitted by
anonymous
-
3 years ago
0
Regax for validate any variable string
PCRE2 (PHP >=7.3)
Regax for validate any variable string
Submitted by
Chandan
-
3 years ago
0
中英文、数字、全角符号的验证正则
PCRE2 (PHP >=7.3)
匹配中、英文、数字、全角符号,破折号和下滑线,不匹配除了这些以外的其他字符
Submitted by
nihuge
-
3 years ago
0
域名规则
ECMAScript (JavaScript)
域名规则
Submitted by
anonymous
-
3 years ago
0
CSS font-face rules for embedded webfonts (base64-encoded woff/woff2)
ECMAScript (JavaScript)
var FONTFACE_PATTERN = /(?:^|)(?:(?<=(?:font-family[:] ?))'"['"]|(?<=(?:font-weight[:])) ?(.+?)|(?<=(?:font-style[:])) ?(.+?)|(?<=src: ?url[(])(?:['"]?data:(.+?);,[,])(.+?)(?:['"]?[)])(?:[\n\s ]?format((\S+)'"])?)(?:;)(?:|$)/mdg Rudimentary pattern for matching base64-embedded webfonts in CSS style...
Submitted by
Nicholas Berlette (@nberlette)
-
3 years ago
1
(experimental) strip whitespace and linebreaks between HTML tags
ECMAScript (JavaScript)
Basic expression to match and/or remove whitespace and linebreaks between HTML tags via JavaScript (ECMAScript). [x] respects whitespace between ` and ` tags [x] matches multiple lines around words, but not between them [x] totally not safe for use in a production environment ;) ...
Submitted by
Nicholas Berlette (https://github.com/nberlette)
-
3 years ago
0
Email id extraction
Python
extracting email id from given string
Submitted by
anonymous
-
3 years ago
0
Any mobile number extraction
Python
extracting mobile number along with country code
Submitted by
anonymous
-
3 years ago
0
match street address
PCRE (PHP <7.3)
match street address with no more than 6 numbers and no special characters
Submitted by
anonymous
-
3 years ago
1
HTML Regex
Python
HTML Pattern Recursively use this pattern to match HTML content. This pattern will match Hello World and return a groupdict of tag, body and attribute data. Then you can use this pattern on the body to parse nested HTML tags as well.
Submitted by
GrandMoff100
-
3 years ago
0
Tizen Package ID Requirements
ECMAScript (JavaScript)
These are the requirements for a Tizen Pacakge ID of type applicationIdType This type expects pattern '[0-9a-zA-Z]{10}.{1,52}'
Submitted by
sherwino
-
3 years ago
0
UPI ID regex
ECMAScript (JavaScript)
regex to detect or extract UPI ID
Submitted by
anonymous
-
3 years ago
1
Street names in Germany
ECMAScript (JavaScript)
Validates street names of Germany.
Submitted by
Chandru Naik
-
3 years ago
0
text between two parameters
PCRE2 (PHP >=7.3)
the gray ones are the wanted parameters
Submitted by
anonymous
-
3 years ago
0
Add gcache.size to Galera Cluster node config
Python
Regexp to add gcache.size to Galera cluster config, using Ansible's replace module
Submitted by
Aurelio Llorente
-
3 years ago
1
...
138
139
140
141
142
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(
(
(
[
0
-
9A
-
Fa
-
f
]
{2}
[
:-
]
){5}
(
[
0
-
9A
-
Fa
-
f
]
{2}
)
)
|
(
(
[
0
-
9
]
{2,3}
[
:-
]
){5}
(
[
0
-
9
]
{2,3}
)
)
)
/
gm
Open regex in editor
Description
mac address validation in hex or decimal form
Submitted by
planetwatch.io
-
3 years ago