← Back to all regex patterns
Validation
Low backtracking risk
Regex for Valid Email Address
Use this when you need a lightweight email format check in forms or ETL cleanup. It avoids spaces and requires a single @ plus a dot-delimited domain.
Regex
/^[^\s@]+@[^\s@]+\.[^\s@]+$/iTry this pattern
Matches current input
jane.doe@example.com
1 match found in the current text.
Passing examples
- jane.doe@example.com
- alerts+ops@tinapps.io
Failing examples
- missing-at-symbol.example.com
- bad space@example.com
Code examples
JavaScript
const regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/i;
regex.test(input);Python
import re
pattern = re.compile(r"^[^\s@]+@[^\s@]+\.[^\s@]+$", re.IGNORECASE)
bool(pattern.search(input))Go
re := regexp.MustCompile("(?i)^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$")
matched := re.MatchString(input)Related Validation Patterns
Regex for URL Slug
/^[a-z0-9]+(?:-[a-z0-9]+)*$/
Regex for Strong Password
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z\d]).{12,}$/
Regex for UUID v4
/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i
Regex for IPv4 Address
/^(?:25[0-5]|2[0-4]\d|1?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|1?\d?\d)){3}$/
Regex for Hex Color
/^#?(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/
Regex for Semantic Version
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/