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...
12
Username with "_" "-"
ECMAScript (JavaScript)
no description available
Submitted by
Gianvy
-
9 years ago
19
Get path from any text
Recommended
PCRE2 (PHP >=7.3)
Get path (windows style) from any type of text (error message, e-mail corps ...), quoted or not. THIS IS THE SINGLE LINE VERSION !_ If you want understand how it work or edit it, go https://regex101.com/r/7o2fyy Relative path are not supported...
Submitted by
nitrateag
-
2 years ago
(Last modified a year ago)
7
Match text (not within html tag)
ECMAScript (JavaScript)
no description available
Submitted by
Moistly
-
10 years ago
15
us postal/zip
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
11 years ago
7
if, else if, else condtion match
ECMAScript (JavaScript)
matches full if condition statment eg: if(condition){ ... } else if(condition){ ... }else{...
Submitted by
Ivan Jakesevic
-
10 years ago
1
IP Addresses
PCRE (PHP <7.3)
Matches IP Addresses with minimum false positives
Submitted by
Austin-Hanson
-
9 years ago
7
CSS Import
Python
no description available
Submitted by
anonymous
-
11 years ago
4
Element's Attribute Value in XML (simple)
PCRE (PHP <7.3)
Simple regular expression for extracting attribute value of the element in XML-string. Attribute value should be in quotes.
Submitted by
Nikita Danilov
-
11 years ago
9
domain - host
Python
no description available
Submitted by
anonymous
-
9 years ago
4
Remove HTML tags
PCRE (PHP <7.3)
This regex is used to remove HTML tag on string
Submitted by
Jordane BACHELET
-
10 years ago
5
Separate words (works with spaces, dashes and underscores)
PCRE (PHP <7.3)
no description available
Submitted by
marcoslhc
-
10 years ago
11
html color match: transparent, #fff, #123456, rgb, rgba, hsl, hsla
ECMAScript (JavaScript)
This may be useful or not to test whether a given string is a valid (more or less) html color value. It matches color values such as: #123 - short hex color value #123456 - hex color value rgb(255,255,0) - rgb color value rgba(255,255,0,1.0) - rgba color value hsl(360,100%,100%) - hsl color value...
Submitted by
grouch
-
10 years ago
7
simple common lisp tokenizer
ECMAScript (JavaScript)
main symbols and comments are supported
Submitted by
d4rw1n1s7@gmail.com
-
10 years ago
13
Credit Card Expiry Date
ECMAScript (JavaScript)
Allows inserting expiry date as MM/YYYY or MM-YYYY format
Submitted by
Rider
-
10 years ago
0
Name
ECMAScript (JavaScript)
Simple name matching Matches english names only, you may add international characters to list of characters.
Submitted by
Ehsan
-
10 years ago
15
Email regex validation
ECMAScript (JavaScript)
RegEx email /^((?!\.)[\w-_.]*)(@\w+)(\.\w+(\.\w+)?)$/gim; Just playing with Reg Ex. This to validate emails in following ways ...
Submitted by
https://www.linkedin.com/in/peralta-steve-atileon/
-
6 years ago
(Last modified a year ago)
8
Date time Advanced
PCRE (PHP <7.3)
no description available
Submitted by
Mr.Neutro
-
11 years ago
10
Strip Email ID from Name
PCRE (PHP <7.3)
Use this regex to select all characters up to the "" bracket. It works across multiple lines. You can get an email list with only the IDs. This is the pattern it matches: Alpha Person Step 1 (.*) [$ Step 2 [$.$] (.*) gives you aperson@whatever.org...
Submitted by
Jonathan Davidar
-
10 years ago
6
Username:Password
PCRE (PHP <7.3)
Regex For finding username:password
Submitted by
Ghost
-
9 years ago
13
US Currency Format
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
2
3
4
5
6
...
902
Community Library Entry
1
Regular Expression
ECMAScript (JavaScript)
/
^
(
(
BL
[
0
-
9
]
{1,2}
)
|
(
(
BL
[
0
-
9
]
[
A
-
Z
]
)
|
(
(
M
[
0
-
9
]
{1,2}
)
|
((
M
[
0
-
9
]
[
A
-
Z
]
)|
((
OL
[
0
-
9
]
{1,2}
)|
((
OL
[
0
-
9
]
[
A
-
Z
]
)|
((
SK
[
0
-
9
]
{1,2}
)|
((
SK
[
0
-
9
]
[
A
-
Z
]
)|
((
WA
[
0
-
9
]
{1,2}
)|
((
WA
[
0
-
9
]
[
A
-
Z
]
)|
((
WN
[
0
-
9
]
{1,2}
|
((
WN
[
0
-
9
]
[
A
-
Z
]
)))))))))))
)
)
)
[
0
-
9
]
[
A
-
Z
]
{2}
$
/
gm
Open regex in editor
Description
🤯
Submitted by
donivanes
-
4 years ago