<?php $html = '<a href="mailto:jeff@mycom.com">Mailme</a> (including the "a" tags)'; $html = preg_replace("~<a .*?href=[\'|\"]mailto:(.*?)[\'|\"].*?\>.*?</a>~", "$1", $html); echo $html;