Test, validate and match regular expressions
This regex validates email addresses with a permissive local part allowing word characters and special symbols like !#$%&'*+/=?^`{}|~, and a domain part supporting word characters, hyphens, and plus signs. The TLD section supports multi-segment domains and enforces at least 2 characters for the final segment. It's useful for client-side email validation in JavaScript applications.