I want to get a the part of string of an email after @ using regular expression. For example, I have the string 'mirko@gmail.com' and i want to get 'gmail.com'. I wrote /^@./ but doesn't work- I wrote
preg_match('/^@./', $string, $output);
print($output);
How can i fix it?