gistlib
index.tsxconst temporaryEmailRegex = /^[a-zA-Z0-9_.+-]+@example\.com$/; const email = "john_doe@example.com"; if (temporaryEmailRegex.test(email)) { console.log("Valid temporary email address"); } else { console.log("Invalid temporary email address"); } 254 chars9 lines
const temporaryEmailRegex = /^[a-zA-Z0-9_.+-]+@example\.com$/; const email = "john_doe@example.com"; if (temporaryEmailRegex.test(email)) { console.log("Valid temporary email address"); } else { console.log("Invalid temporary email address"); }
gistlibby LogSnag