<?php $input = "john@gmail.co.uk"; preg_match('/@.+?(\..+)/', $input, $matches); return $matches[1];
You have javascript disabled. You will not be able to edit any code.