Question d’entretien chez Micro Focus

Write a program to differentiate between email and ip address?