gistlib
index.tsxconst emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; 71 chars2 lines
const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
This regex pattern checks whether a string is a valid email address in JavaScript by matching against common email address formats.
gistlibby LogSnag