Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 14,860 community submitted regex patterns...
35
77 upvotes, 42 downvotes (score 55.8%) (You must be signed in to vote)
IP Address validator
ECMAScript (JavaScript)
Validates IPv4 IP Address
Submitted by
krzysp
-
8 years ago
2015-06-18 12:52
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
keep versions
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-18 11:59
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
redaa
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-18 11:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Mail With Groups
ECMAScript (JavaScript)
Matches email with groups for username and domain.
Submitted by
anonymous
-
8 years ago
2015-06-18 11:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
File input type validation
PCRE (PHP <7.3)
no description available
Submitted by
Ramkumar Venkatachalam
-
8 years ago
2015-06-18 07:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
match data-reactid
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-18 02:13
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Java poet regex alternative.
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-18 00:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Basic IP matching
ECMAScript (JavaScript)
I've looked at some of the other IP matching that seems a lot more complex but several of them don't work, and I'm too simple minded to figure out why. Keep it simple, I've never had a problem matching IP addresses in logs with this one.
Submitted by
anonymous
-
8 years ago
2015-06-17 18:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Orignial Log Parse (Spark Lab2)
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-06-17 17:44
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
UK (Europe) DateTime
ECMAScript (JavaScript)
Validates input to match UK Date Time standard
Submitted by
Bascoder
-
8 years ago
2015-06-17 16:59
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
CSV parsing
PCRE (PHP <7.3)
matches the exact fields of CSV files supports: qouted fields quoted fields containing commas, doubble quoutes, and newlines empty fields empty records arbitrary white space in, and outside quoted fields
Submitted by
Austin
-
8 years ago
2015-06-17 16:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Non-prod Application Log Regex
PCRE (PHP <7.3)
no description available
Submitted by
Aditya Bindra
-
8 years ago
2015-06-17 15:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
{1-65536}
PCRE (PHP <7.3)
12
Submitted by
anonymous
-
8 years ago
2015-06-17 13:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
validate_invoiceid_with_yy
PCRE (PHP <7.3)
Validate an ivoice number with the last two digit as last 2 year digit
Submitted by
ema
-
8 years ago
2015-06-17 12:29
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
composer package
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-17 12:12
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
RGB colors
PCRE (PHP <7.3)
Matches all the RGB colors in the format #RRGGBB and #RGB
Submitted by
Gabriel Hautclocq
-
8 years ago
2015-06-17 10:07
2
5 upvotes, 3 downvotes (score 30.6%) (You must be signed in to vote)
Match <?xml...?>
PCRE (PHP <7.3)
How to match the first line of a xml document
Submitted by
anonymous
-
8 years ago
2015-06-17 09:25
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
apache log analysis
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-06-17 04:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find only ".config" file names
PCRE (PHP <7.3)
Will find lines that end with "/*.config"
Submitted by
Dee
-
8 years ago
2015-06-16 22:38
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Safe words and dirty words
PCRE (PHP <7.3)
This regex matches "bob" but does not match "abob", "bobb" or "cbobd" while it does match "cbob" and "bobd". Here "bob" is the dirty word and "abob", "bobb" and "cbobd" are safe phrases
Submitted by
Alex
-
8 years ago
2015-06-16 21:13
1
...
678
679
680
681
682
683
684
...
743
Find exact domain name match
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?<=
\|
|
\A
|
\n
)
(
dev
\.
test
\.
com
)
(?=
\|
|
Z
|
\n
)
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-06-15 11:49