http://qs321.pair.com?node_id=94582


in reply to Regex probleme, how memorize (match)? with question mark ?

This should match anything after mailto: that isn't a " and ends with "> and put it in $1.
if (/href="mailto:([^"]*)">/) { print "MATCH - ($1)" } else { print "DONT MATCH" }

--
Check out my Perlmonks Related Scripts like framechat, reputer, and xNN.