Nicholas Cheek

LITTLE ROCK WEB DEVELOPER

function emailize($text)
{
    $regex = '/(\S+@\S+\.[^\<]+)/';
    $replace = '<a href="mailto:$1">$1</a>';

    return preg_replace($regex, $replace, $text);
}
						

LITTLE ROCK WEB DEVELOPER

Living the dream.

nick@nicholascheek.com