<?php $str = "derey22@walla.co.il derey22@sitetou.co.il op@derey22.ss"; preg_match_all("#[^@ ]*@[^@ ]*#i", $str, $c); print_r($c); ?>