Extract domain from email addressPosted to General on Tuesday July 8 2025 at 9:20 pm
It's not as easy as it seems.
If you take a look at all of the allowable characters for the local part of an email address, the commercial at sign (@) is one of them. That means that an email address like:
first@last@example.com
is a valid email address. If you do the standard explode, you'll get three parts, not two. A typical function would […more]