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...
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
Codeblocks
ECMAScript (JavaScript)
Combat md.replace(regex, "") and md.replace("`", "") to replace Markdown codeblocks with HTML ones
Submitted by
Rix
-
3 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
-
3 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
-
3 years ago
(Last modified 3 years ago)
1
File extension
ECMAScript (JavaScript)
Retrieve the file extension of a filename
Submitted by
anonymous
-
3 years ago
1
Detect zoom meeting links
PCRE2 (PHP >=7.3)
Find zoom links in text
Submitted by
Artyom Ivanov
-
3 years ago
1
Remove trailing commas of PHP array and functions
ECMAScript (JavaScript)
This expression looks for sequences of PHP arrays, either closed with ] or ) with unnecessary trailing commas and captures the content divided into three parts, except by the comma itself. You can use it to search an replace in editors like VSCode like this: Search: ([\])]),(\s\n\s*)([\])]) Replac...
Submitted by
Mateus Machado Luna
-
3 years ago
1
UAE Emirates ID Number
PCRE2 (PHP >=7.3)
Validate an Emirates ID number, with or without dashes. Please note that this does not implement the Luhn Algorithm, which should be applied in conjunction with simple validation.
Submitted by
Pete Mahon
-
3 years ago
0
Turkish Phone Number
ECMAScript (JavaScript)
It matches all phone numbers in Turkey starting with country and area code. +902121111111 +90 2121111111 +90 212 1111111 +90 212 111 1111...
Submitted by
Erman Seneren
-
3 years ago
1
Changelog
ECMAScript (JavaScript)
Find and change changelog version numbers in a CHANGELOG.md file.
Submitted by
Joshua
-
3 years ago
1
Números decimales y exponenciales aislados
Python
Hace coincidir números decimales y exponenciales aislados para el sistema de numeración decimal. 22e22 22e+22 +22e22 +22e+22 22.22 22. .22 22.e22 22.e+22 22.22e22 22.22e+22 .22e22 .22e+22 88e 88e+ e88 e+88 88e88.
Submitted by
Johnny Alonso
-
3 years ago
(Last modified 3 years ago)
1
todos and tags in code
PCRE2 (PHP >=7.3)
todos and tags in code
Submitted by
anonymous
-
3 years ago
1
Website validation
PCRE2 (PHP >=7.3)
This regex is for validating website url Only accept http and https With or without www With or without subdomain .com or dot any With any sub path...
Submitted by
anonymous
-
3 years ago
1
Regex of name or a firstname
PCRE2 (PHP >=7.3)
Format detected: "Jean" OR "Jean-Pierre" OR "Jean-Marie-Pierre"...
Submitted by
Massinissa CHAOUCHI
-
3 years ago
1
Sri Lankan Land/Fixed-line Telephone Number Validation
PCRE2 (PHP >=7.3)
Sri Lankan Land/Fixed-line Telephone Number Validation This expression validates if a given value is a valid Sri Lankan fixed line / land line telephone number. Sri Lankan land line numbers starts from 0 and does not contain 7 in the 2nd digit, and is 10 digits in length. ...
Submitted by
Isuru Ranawaka
-
3 years ago
1
Sri Lankan Mobile Number Validation
PCRE2 (PHP >=7.3)
See https://en.wikipedia.org/wiki/Telephone_numbers_in_Sri_Lanka
Submitted by
Isuru Ranawaka
-
3 years ago
0
Email
PCRE2 (PHP >=7.3)
Email
Submitted by
anonymous
-
3 years ago
0
HGVS RNA deletion
PCRE2 (PHP >=7.3)
This regex will match RNS deletion following hgvs nomenclature
Submitted by
anonymous
-
2 years ago
1
Add commas between numbers
PCRE2 (PHP >=7.3)
This regex separates numbers with commas taking 0 into account.
Submitted by
anonymous
-
2 years ago
1
Regex de validação de número celular e fixo | PHP (PCRE2)
PCRE2 (PHP >=7.3)
Regex validação número celular e fixo Somente números nacionais Com ou sem DDI 55 (com ou sem + e/ou 00) DDD obrigatório (com ou sem parênteses) Com ou sem Dígito 9...
Submitted by
Danillo Dantas
-
2 years ago
1
...
318
319
320
321
322
...
902
Community Library Entry
1
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
Monday
|
Tuesday
|
Wednesday
|
Thursday
|
Friday
|
Saturday
|
Sunday
)
,
\s
(
August
|
September
|
October
|
November
|
December
|
January
|
February
|
March
|
April
|
May
|
June
|
July
)
\s
[
0
-
9
]
{1,2}
,
\s
[
0
-
9
]
{4}
$
/
gm
Open regex in editor
Description
mayurscanecorner.com
Submitted by
anonymous
-
5 months ago