var str = '<map id="test" name="test">\
<area shape="poly" coords="1583,172,1589,172,1589,178,1583,178,1583,172,1583,172" title="Line1: (29.04.01 06:00, 18,738)" alt="" nohref="nohref"/>\
<area shape="poly" coords="1330,152,1336,152,1336,158,1330,158,1330,152,1330,152" title="Line1: (29.04.01 05:00, 20,279)" alt="" nohref="nohref"/>\
<area shape="poly" coords="1077,133,1083,133,1083,139,1077,139,1077,133,1077,133" title="Line1: (29.04.01 04:00, 21,814)" alt="" nohref="nohref"/>\
<area shape="poly" coords="824,114,830,114,830,120,824,120,824,114,824,114" title="Line1: (29.04.01 03:00, 23,345)" alt="" nohref="nohref"/>\
</map>\
<map id="test" name="test">\
<area shape="poly" coords="571,94,577,94,577,100,571,100,571,94,571,94" title="Line1: (29.04.01 02:00, 24,869)" alt="" nohref="nohref"/>\
<area shape="poly" coords="318,75,324,75,324,81,318,81,318,75,318,75" title="Line1: (29.04.01 01:00, 26,387)" alt="" nohref="nohref"/>\
<area shape="poly" coords="66,56,72,56,72,62,66,62,66,56,66,56" title="Line1: (29.04.01 00:00, 27,899)" alt="" nohref="nohref"/>\
</map>';
var res = str.match( /(<area(?:[^>]*)>)/ig );
alert( res.join( "\n\n" ));