if (/href="mailto:([^"]*)">/) { print "MATCH - ($1)" } else { print "DONT MATCH" }