2296 (regexp with split)

The following program extracts the domain-part of a comma-seperated list of email-addresses provided in a string. source data is private and anonymized, this means the local-part of the accounts is *not* published. the domain-part is public anyway, let me just mention a simple whois-query at https://de.wikipedia.org/wiki/Network_Information_Center or https://www.denic.de/


$li=”myname@domain.com , seconduser@seconddomain.com , lickitallup@ngi.de , john@doe.net , me@thebeach.earth”;


while (list ($key, $val) = each ($ar)) {

echo $ar2[1];
echo “,”;
echo “*br /*”;


About this entry