GarryOne Posted October 19, 2011 Report Posted October 19, 2011 (edited) Demo: http://garryone.trei.ro/tests/mail_exatractor.phpSource: Source Edited October 19, 2011 by GarryOne Quote
Guest expl0iter Posted October 19, 2011 Report Posted October 19, 2011 Mult mai eficient:<center><div align='center'><img src ='http://img231.imageshack.us/img231/7871/thiev.png'></div><style type="text/css"> body{ background:#000000;; } a { text-decoration:none; } a:hover{ border-bottom:1px solid #4C83AF; } *{ font-size:11px; font-family:Tahoma,Verdana,Arial; color:#009900; } </style><html><head><head><title>Free Online Email Extractor</title><center> <FORM name="extractor"> <TABLE bgcolor="#CCCCCC" cellpadding=1 cellspacing=0 border=0> <TR> <TD> <TABLE border=0 cellpadding=8 cellspacing=0 bordercolor="#000000" bgcolor="#CCCCCC"> <TR class="titlebarcolor"> <TD valign="TOP" colspan=2 ><h2 align="center"><FONT class="titlefont"><strong>Email Extractor</strong></FONT></h2> </TD> </TR> <TR> <TD valign="TOP" align="CENTER" colspan=2> <SCRIPT language="JAVASCRIPT">var introtext = 'Copy text from any source and paste it into here. Then click extract button. You can select different separator (or enter your own), group a number of emails and sort extracted emails alphabetically.';document.write('<TEXTAREA NAME="rawdata" rows=12 cols=50 onFocus="if (this.value == introtext) this.value = \'\';">' + introtext + '</TEXTAREA>'); </SCRIPT> </TD> </TR> <TR> <TD valign="TOP" align="LEFT" colspan=2> Separator: <SELECT name="sep"> <OPTION value=", ">Comma</OPTION> <OPTION value="|">Pipe</OPTION> <OPTION value=" : ">Colon</OPTION> <OPTION value="new">New Line</OPTION> <OPTION value="other">Other</OPTION> </SELECT> <INPUT type="TEXT" name="othersep" size=3 onBlur="checksep(this.value)"> Group: <INPUT type="TEXT" size=3 name="groupby" onBlur="numonly(this.value)"> Emails <LABEL for="sortbox"> <INPUT type="CHECKBOX" name="sort" id="sortbox"> Sort Alphabetically</LABEL> </TD> </TR> <TR valign="TOP"> <TD align="LEFT"> <INPUT name="BUTTON" type="BUTTON" class="button" onClick="findEmail()" value="Extract"> <INPUT name="RESET" type="RESET" class="button" value="Reset"> <SCRIPT language="JavaScript" type="text/javascript"><!--if ((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)) { document.write('<INPUT TYPE="BUTTON" CLASS="button" VALUE="Copy To Clipboard" onClick="copy();">');} else { document.write('<INPUT TYPE="BUTTON" CLASS="button" VALUE="Highlight All" onClick="highlight();">');}// --> </SCRIPT> </TD> <TD align="RIGHT" valign="BOTTOM" nowrap> Email count: <INPUT name="count" size=5 readonly> </TD> </TR> </TABLE> </TD> </TR> </TABLE> </FORM> <SCRIPT language="JAVASCRIPT" type="text/javascript"><!-- Begin// Created and Copyrighted by Benjamin Leow// Please go to http://www.surf7.net for latest version and more freewarefunction copy() {highlight();textRange = document.extractor.rawdata.createTextRange();textRange.execCommand("RemoveFormat");textRange.execCommand("Copy");window.alert("The content has been copied to your clipboard.");}function highlight(){document.extractor.rawdata.focus()document.extractor.rawdata.select()}function checksep(value){if (value) document.extractor.sep.value = "other";}function numonly(value){if (isNaN(value)) { window.alert("Please enter a number or else \nleave blank for no grouping."); document.extractor.groupby.focus();}}function findEmail() {var email = "No email address detected";var a = 0;var ingroup = 0;var separator = document.extractor.sep.value;var groupby = Math.round(document.extractor.groupby.value);if (separator == "new") separator = "\n";if (separator == "other") separator = document.extractor.othersep.value;var rawemail = document.extractor.rawdata.value.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi);var norepeat = new Array();if (rawemail) { for (var i=0; i<rawemail.length; i++) { var repeat = 0; // Check for repeated emails routine for (var j=i+1; j<rawemail.length; j++) { if (rawemail[i] == rawemail[j]) { repeat++; } } // Create new array for non-repeated emails if (repeat == 0) { norepeat[a] = rawemail[i]; a++; } } if (document.extractor.sort.checked) norepeat = norepeat.sort(); // Sort the array email = ""; // Join emails together with separator for (var k = 0; k < norepeat.length; k++) { if (ingroup != 0) email += separator; email += norepeat[k]; ingroup++; // Group emails if a number is specified in form. Each group will be separate by new line. if (groupby) { if (ingroup == groupby) { email += '\n\n'; ingroup = 0; } } }}// Return array lengthvar count = norepeat.length;// Print resultsdocument.extractor.count.value = count;document.extractor.rawdata.value = email;}// End --> </SCRIPT> </td> </tr></table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center" valign="top" > <!-- ValueClick Media 468x60 and 728x90 Banner CODE for discoveryvip.com --><script language="javascript" src="get.media-sid=46433&m=1&tp=5&d=j&t=n&no_cj_c=0&upsid=299205681220" tppabs="http://media.fastclick.net/w/get.media?sid=46433&m=1&tp=5&d=j&t=n"></script><noscript>width=728 height=90 border=1></a></noscript><!-- ValueClick Media 468x60 and 728x90 Banner CODE for discoveryvip.com --><BR></td> </tr> <tr></td> </tr> <tr> <td align="center" valign="top" bgcolor="#CCCCCC" > <BR> <script type="text/javascript"><!--var EXlogin='sral3' // Loginvar EXvsrv='s11' // VServerEXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?EXb=EXs.colorDepth:EXb=EXs.pixelDepth;navigator.javaEnabled()==1?EXjv="y":EXjv="n";EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";EXd.write("<img src=http://e2.extreme-dm.com","/"+EXvsrv+".g?login="+EXlogin+"&","jv="+EXjv+"&j=y&srw="+EXw+"&srb="+EXb+"&","l="+escape(EXd.referrer)+" height=1 width=1>");//--> </script> <noscript> </noscript> </div> <noscript><div align="center" id="neXTReMe"><img height="1" width="1" alt=""src="s11.g-login=sral3&j=n&jv=n.gif" tppabs="http://e2.extreme-dm.com/s11.g?login=sral3&j=n&jv=n" /></div></noscript></div></td> </tr></table><!--- UNDERDOGMEDIA Pop Under JavaScript ADCODE START---><script language="javascript"> var d=new Date();var b=d.getSeconds();document.write('<scr'+'ipt language="javascript" src="http://udmserve.net/udm/img.fetch?sid=384;tid=3;ev=1;dt=4;b='+b+'"></scr'+'ipt>');</script><!--- UNDERDOGMEDIA Pop Under JavaScript ADCODE END---><a href="http://forum.thieves-team.com/"><p style="font-size:xx-large;">xXx</p></a> []</p> Quote