<?php $text = "rami@gmail.com:Password This email is from Gmail email subscription is valid omar@yahoo.com:password this email is from yahoo email subscription is valid "; var_export(preg_match_all('~^[^@\s]+@[^:\s]+:\S+~m', $text, $matches) ? $matches[0]: "none");
You have javascript disabled. You will not be able to edit any code.