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
Highest Score
Lowest Score
Most upvotes
Most downvotes
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 5,520 community submitted regex patterns...
1
Absolute File Path Validation
ECMAScript (JavaScript)
Matches absolute file paths, such as C:\Users\username\Documents\filename.txt The path must contain a file and extension at the end
Submitted by
anonymous
-
3 years ago
1
Div shortcode [div]..[/div]
ECMAScript (JavaScript)
Converts the markdown shortcode for the dive element to the regular HTML: Example shortcode: [div id="bla" class="ups"]some multiple line text[/div]
Submitted by
Dux Linux
-
3 years ago
1
Find last occurrence of char in a string
ECMAScript (JavaScript)
Find last occurrence of . can be replaced with anything .
Submitted by
Volgers
-
3 years ago
1
Youtube video URL or empty
ECMAScript (JavaScript)
Matches correct youtube video urls and empty strings.
Submitted by
xeon927 on stackoverflow
-
3 years ago
1
RegEx Workshop
ECMAScript (JavaScript)
Phone Number RegEx
Submitted by
Anthony Cooper
-
3 years ago
1
get homepage url from full url
Python
get homepage url from full url
Submitted by
Suraj Shrestha
-
3 years ago
1
Add rgb for colour variables
ECMAScript (JavaScript)
Add rgb for colour variables
Submitted by
anonymous
-
3 years ago
1
Third Strike - SRK Wiki - Any Guard Type
ECMAScript (JavaScript)
xxx
Submitted by
Clay Dunston
-
3 years ago
1
single ling prop to multi line
ECMAScript (JavaScript)
single ling prop to multi line
Submitted by
anonymous
-
3 years ago
1
CSV CIDR subnets
ECMAScript (JavaScript)
Comma separated CIDR network addresses
Submitted by
Glenn
-
3 years ago
1
Don't match numbers longer than 5 length
Python
using ^ and $
Submitted by
anonymous
-
3 years ago
1
Parse CISCO NEXUS 9xxx/5xxxx show inventory output w/o | json modifier
Python
Parse CISCO NEXUS 9xxx/5xxxx show inventory output w/o | json modifier. Nexus 9xxxx don't have the json output modifier. It's a LINUX based os, so | json would fork a json binary which doesn't exist
Submitted by
skalef
-
3 years ago
(Last modified 3 years ago)
1
Valid RGB color value
ECMAScript (JavaScript)
Pattern for matching actually valid RGB values. validate separator (mixing spaces and commas between values is not valid) validate if comma is used as separator if alpha channel is set validate units (mixing percentage with integers is not valid) extract r, g, b, a, separator and unit with named gr...
Submitted by
BorisTB
-
3 years ago
(Last modified 3 years ago)
1
ss001
Python
Rep
Submitted by
anonymous
-
3 years ago
1
hashtag
ECMAScript (JavaScript)
gfhgfhghfg
Submitted by
anonymous
-
3 years ago
1
Email Address subdomains support
ECMAScript (JavaScript)
It checks email addresses supporting subdomains name@gmail.com name.surname@fda.gov name_surmna05@kernel.org name-surname@redaktion.derspiegel.de...
Submitted by
anonymous
-
3 years ago
1
Parse URLs
Python
A regular expression to parse URLs. Complete with comments.
Submitted by
D. Torres
-
3 years ago
1
Currency amount validation with sign (cents optional)
ECMAScript (JavaScript)
Allows Number: Currency amount US (cents optional) Can use US-style 123,456.78 notation Optional thousands separators; optional two-digit fraction; commas; dollar sign
Submitted by
NatZol
-
3 years ago
1
1
ECMAScript (JavaScript)
1
Submitted by
anonymous
-
3 years ago
1
Remove HTML tags and comments
Python
Remove HTML tags and comments
Submitted by
Smit Patel
-
3 years ago
1
...
236
237
238
239
240
...
276
IpAddress
1
Regular Expression
ECMAScript (JavaScript)
/
^
(
(
[
0
-
9
]
){1,3}
)
[
.
]
(
(
[
0
-
9
]
){1,3}
)
[
.
]
(
(
[
0
-
9
]
){1,3}
)
[
.
]
(
(
[
0
-
9
]
){1,3}
)
$
/
gm
Open regex in editor
Description
Ensure the ip address format is correct
Submitted by
aaa
-
3 years ago