Regex for Email with Plus Addressing
Regex Pattern
^[a-zA-Z0-9._%+-]+\+[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$Email address using plus/sub-addressing (user+tag@domain.com)
Quick Answer
The regex pattern for email with plus addressing is `^[a-zA-Z0-9._%+-]+\+[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$`. Email address using plus/sub-addressing (user+tag@domain.com). This works in JavaScript, Python, Ruby, PHP, Java, and most regex engines that support PCRE syntax.
Test Examples
| Input | Result |
|---|---|
| user+newsletter@example.com | ✓ Matches |
| jane+work@domain.co.uk | ✓ Matches |
| test+tag@site.io | ✓ Matches |
| user@example.com | ✗ No match |
| user++@domain.com | ✗ No match |
| no-email | ✗ No match |
Code Examples
javascript
const regex = /^[a-zA-Z0-9._%+-]+\+[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
const isValid = regex.test(value);python
import re
pattern = r'^[a-zA-Z0-9._%+-]+\+[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'
if re.match(pattern, value):
print("valid")ruby
pattern = /^[a-zA-Z0-9._%+-]+\+[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/
if value =~ pattern
puts "valid"
endphp
if (preg_match('/^[a-zA-Z0-9._%+-]+\+[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/', $value)) {
echo "valid";
}java
String pattern = "^[a-zA-Z0-9._%+-]+\\+[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$";
boolean isValid = value.matches(pattern);Frequently Asked Questions
Related Regex Patterns
Email Address
Validates a standard email address format
Email (RFC 5322 Compliant)
RFC 5322 compliant email validation with label length limits
URL (HTTP/HTTPS)
Validates HTTP and HTTPS URLs
URL (Any Protocol)
Matches URLs with any protocol (http, https, ftp, ws, etc.)
Domain Name
Validates a domain name (no protocol)
Email Username Part
Extracts the local/username part of an email address