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,020 community submitted regex patterns...
2
US Social Security Number
PCRE2 (PHP >=7.3)
Finds a number that is 9 digits long. Can have spaces or hyphens in between the numbers and will still be found
Submitted by
anonymous
-
2 years ago
1
13-16 digit credit card
PCRE2 (PHP >=7.3)
Finds a number that is 13-16 digits long. Can have spaces or hyphens in between the numbers and will still be found.
Submitted by
Spencer Curtis
-
2 years ago
(Last modified 2 years ago)
0
Flight Number Regex for Java and Tests
Java 8
A regex string to validate flight number
Submitted by
Jose Sousa
-
2 years ago
1
HTML TAG WITH VALUE AND CHILDREN
ECMAScript (JavaScript)
This regex target each html tag with their children and their value
Submitted by
Florian Caron
-
2 years ago
0
SAFE Parsing
Python
Parsing data in SAFE text file
Submitted by
anonymous
-
2 years ago
0
cpf
PCRE2 (PHP >=7.3)
regex cpf
Submitted by
vcatafesta@gmail.com
-
2 years ago
(Last modified 2 years ago)
1
Codeblocks
ECMAScript (JavaScript)
Combat md.replace(regex, "") and md.replace("`", "") to replace Markdown codeblocks with HTML ones
Submitted by
Rix
-
2 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
-
2 years ago
0
mac address validation
PCRE2 (PHP >=7.3)
mac address validation in hex or decimal form
Submitted by
planetwatch.io
-
2 years ago
0
css class
PCRE (PHP <7.3)
css class
Submitted by
anonymous
-
2 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
-
2 years ago
0
phone number matcher
Java 8
phone number matcher
Submitted by
anonymous
-
2 years ago
0
Regax for validate any variable string
PCRE2 (PHP >=7.3)
Regax for validate any variable string
Submitted by
Chandan
-
2 years ago
0
中英文、数字、全角符号的验证正则
PCRE2 (PHP >=7.3)
匹配中、英文、数字、全角符号,破折号和下滑线,不匹配除了这些以外的其他字符
Submitted by
nihuge
-
2 years ago
0
域名规则
ECMAScript (JavaScript)
域名规则
Submitted by
anonymous
-
2 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)
-
2 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)
-
2 years ago
0
Email id extraction
Python
extracting email id from given string
Submitted by
anonymous
-
2 years ago
0
Any mobile number extraction
Python
extracting mobile number along with country code
Submitted by
anonymous
-
2 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
-
2 years ago
1
...
137
138
139
140
141
...
901
Community Library Entry
0
Regular Expression
Python
r"
[
+
]
\d
{2}
?
[
-
\s
]
?
\d
{5}
?
[
-
\s
]
?
\d
{5}
|
\(
\d
{3}
\)\-
\d
{3}
-
\d
{4}
"
gm
Open regex in editor
Description
extracting mobile number along with country code
Submitted by
anonymous
-
2 years ago