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
hash and slash
ECMAScript (JavaScript)
replace url that has a hash or slash with slash
Submitted by
anonymous
-
3 years ago
1
command df -T on linux
PCRE2 (PHP >=7.3)
command df -T on linux udev devtmpfs 65928068 0 65928068 0% /dev tmpfs tmpfs 13190576 304608 12885968 3% /run /dev/mapper/pve-root ext4 98559220 50337808 43171864 54% / tmpfs tmpfs 65952876 46800 65906076 1% /dev/shm...
Submitted by
Saulo Costa
-
3 years ago
(Last modified 3 years ago)
0
Language Values not escaped Double Quotes
PCRE2 (PHP >=7.3)
Regex that identifies unescaped double quotes in strings
Submitted by
Marco
-
3 years ago
0
C/F temp unit
PCRE2 (PHP >=7.3)
me
Submitted by
anonymous
-
3 years ago
-1
Remove HTML tags from a string using JavaScript and RegEx
ECMAScript (JavaScript)
Remove HTML tags from a string using JavaScript and RegEx
Submitted by
Megralo
-
3 years ago
0
10digit mobile number with no spaces and special characters
PCRE2 (PHP >=7.3)
Match a single character present in the list below [6-9] 6-9 matches a single character in the range between 6 (index 54) and 9 (index 57) (case sensitive) Match a single character present in the list below [0-9] {9} matches the previous token exactly 9 times 0-9 matches a single character in the ra...
Submitted by
anonymous
-
3 years ago
0
String length pattern
Golang
Simple search of string length with the regexp
Submitted by
anonymous
-
3 years ago
0
i18next Resource key
PCRE2 (PHP >=7.3)
This regex matches i18next library resource keys
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
user name between 2 and 30 character
ECMAScript (JavaScript)
regex for user name with criteria: Minimum 2 character Maximum 30 character Character must be alphanumeric, except first character is alphabetical Character "_" and "." is allowed once between first and last character
Submitted by
aicone.id
-
3 years ago
(Last modified a year ago)
0
Postcode (UK)
Python
Detects UK postcodes (minimal edge cases)
Submitted by
anonymous
-
3 years ago
0
PO Number
Python
Detects specific prefixes followed by number series
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Credit Note
Python
Detects specific word in a sentence
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
Postfix
PCRE2 (PHP >=7.3)
Add DR to end of line
Submitted by
anonymous
-
3 years ago
0
dice thing
Python
Stuff for a dnd thing
Submitted by
Cata
-
3 years ago
0
完形填空
Python
完形填空
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
0
恩更
Python
非法发
Submitted by
anonymous
-
3 years ago
0
CPF|CNPJ
Python
Match Brazilian documents
Submitted by
Bacco
-
3 years ago
0
extract query and path params - incomplete
PCRE2 (PHP >=7.3)
Working on a regex to extract path and query params
Submitted by
anonymous
-
3 years ago
0
Something...
Java 8
Look for all entries of a country on a list that can have repeated values
Submitted by
anonymous
-
3 years ago
0
case insensitive uuidV4
PCRE2 (PHP >=7.3)
detect uuid V4 in string case insensitive. matches: 1d95e013-3c09-4883-88f1-4337ba0b8ddc AND 1D95E013-3C09-4883-88F1-4337BA0B8DDC
Submitted by
ywk
-
3 years ago
1
...
143
144
145
146
147
...
902
Community Library Entry
0
Regular Expression
ECMAScript (JavaScript)
/
^
[
a
-
zA
-
Z
]
(
[
a
-
zA
-
Z0
-
9
]
{0,28}
|
[
a
-
zA
-
Z0
-
9
]
{0,26}
[
_.
]
?
[
a
-
zA
-
Z0
-
9
]
{0,26}
|
[
a
-
zA
-
Z0
-
9
]
{0,27}
[
_.
]
?
|
[
_.
]
?
[
a
-
zA
-
Z0
-
9
]
{0,27}
)
[
a
-
zA
-
Z0
-
9
]
$
/
mg
Open regex in editor
Description
regex for user name with criteria:
Minimum 2 character
Maximum 30 character
Character must be alphanumeric, except first character is alphabetical
Character "_" and "." is allowed once between first and last character
Submitted by
aicone.id
-
3 years ago
(Last modified a year ago)