Regular expressions are wondrous, but they’re ill-suited for many tasks; parsers are often more reliable.
Gender is not a binary, and a binary is not a boolean.
In outgoing email messages, include images as inline attachments instead of as external images for privacy, resilience, and security.