Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="text/javascript">
- function 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 copy2(){
- document.extractor.rawdata.focus()
- document.extractor.rawdata.select()
- document.execCommand("copy");
- /* Alert the copied text */
- alert("Copied the text");
- }
- function copy3(){
- document.extractor2.splitter2.focus()
- document.extractor2.splitter2.select()
- document.execCommand("copy");
- /* Alert the copied text */
- alert("Text Copied");
- }
- function validate2(){
- document.extractor.rawdata.focus()
- document.extractor.rawdata.select()
- document.extractor.sep.value="new";
- findEmail();
- /* Alert the copied text */
- alert("Submitting Form");
- }
- function split22(){
- document.extractor.rawdata.focus()
- document.extractor.rawdata.select()
- document.extractor.sep.value="new";
- findEmail();
- }
- 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 length
- var count = norepeat.length;
- // Print results
- document.extractor.count.value = count;
- document.extractor.rawdata.value = email;
- }
- // End -->
- </SCRIPT>
- <STYLE TYPE="text/css">
- BODY { background:#FFF }
- body,td,th {
- font-family: Georgia, "Times New Roman", Times, serif;
- text-align: justify;
- font-size: 12px;
- }
- .Header2 {
- font-weight: bold;
- font-size: 18px;
- color: #000;
- }
- .HeaderColor {
- color: #000;
- }
- .bold {
- font-weight: bold;
- color: #30C;
- }
- A:link, A:visited { text-decoration: none; color: #059; }
- A:active, A:hover { text-decoration: underline; color: #D14; }
- .bordercolor { background:#666 }
- .maincolor { background:#CCC }
- .button { background:#CCC }
- .button2 { background:#FFF }
- .titlebarcolor { background:#007 }
- .titlefont { font: normal normal bold 10pt/1em Verdana; color: #FFF; }
- .copyrightfont { font: normal normal normal 7.5pt/1.5em Verdana; color: #666; }
- </STYLE>
- <title>Email Domain Sorter | Email Separator </title>
- <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
- <script>
- (adsbygoogle = window.adsbygoogle || []).push({
- google_ad_client: "ca-pub-9816945270938969",
- enable_page_level_ads: true
- });
- </script>
- </HEAD>
- <BODY>
- <table width="100%" border="0" align='center'>
- <tr>
- <td align="left" valign="top">
- <br><br>
- <br><br>
- <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
- <!-- lite14 vertical side -->
- <ins class="adsbygoogle"
- style="display:inline-block;width:300px;height:1050px"
- data-ad-client="ca-pub-9816945270938969"
- data-ad-slot="7360199948"></ins>
- <script>
- (adsbygoogle = window.adsbygoogle || []).push({});
- </script>
- </td>
- <td align="left" valign="top">
- <p>
- <blockquote>
- <h1>
- <span class="HeaderColor">Email Separator</span></h1>
- </blockquote>
- </p>
- <p>Lite 14 email separator is an email domain sorter or email domain separator, that will strips email address into domains. Use the Separator to separate the list of e-mail addresses by domains and then arrange the addresses within domain.</p>
- <center>
- </center>
- <span class="red"> 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 or by domains</span><br />
- <span class="grey">(USING FORM BELOW IS VERY EASY)</span><br />
- <br><Left>
- <center><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
- <!-- lite14 horizontal top2 -->
- <ins class="adsbygoogle"
- style="display:block"
- data-ad-client="ca-pub-9816945270938969"
- data-ad-slot="2886295554"
- data-ad-format="auto"
- data-full-width-responsive="true"></ins>
- <script>
- (adsbygoogle = window.adsbygoogle || []).push({});
- </script>
- <br>
- </center></left><br>
- <div id="main">
- <DIV ALIGN="CENTER">
- <table> <tr><td>
- <FORM NAME="extractor" action="#" method="post">
- <TABLE CLASS="bordercolor" CELLPADDING=1 CELLSPACING=0 BORDER=0><TR><TD>
- <TABLE CLASS="maincolor" CELLPADDING=8 CELLSPACING=0 BORDER=0>
- <TR CLASS="titlebarcolor">
- <TD VALIGN="TOP" COLSPAN=2 COLSPAN=2><h2><FONT CLASS="titlefont">Email Domain Separator</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.';
- </SCRIPT>
- <TEXTAREA NAME="rawdata" rows=12 cols=80 id="myInput"></TEXTAREA>
- </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>
- <a href="/verifyemailaddress/mailtester.php" target="_blank"> Mail Tester </a>
- </TD></TR>
- <TR VALIGN="TOP"><TD ALIGN="LEFT">
- <INPUT TYPE="BUTTON" CLASS="button" VALUE="Extract" onClick="findEmail()">
- <INPUT 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();"> ');
- document.write('<INPUT TYPE="BUTTON" CLASS="button" VALUE="Copy" onClick="copy2();">');
- }
- // -->
- </SCRIPT>
- <!-- <INPUT TYPE="submit" CLASS="button" VALUE="Split" onClick="split22();"> -->
- <SELECT NAME="domain">
- <OPTION VALUE="gmail.com">gmail.com</OPTION>
- <OPTION VALUE="yahoo.com">yahoo.com</OPTION>
- <OPTION VALUE="hotmail.com">hotmail.com</OPTION>
- <OPTION VALUE="mail.com">mail.com</OPTION>
- <OPTION VALUE="outlook.com">Outlook.com</OPTION>
- <OPTION VALUE="other">Other</OPTION>
- </SELECT>
- <INPUT TYPE="TEXT" NAME="domain2" SIZE=8 >
- </TD>
- <TD ALIGN="RIGHT" VALIGN="BOTTOM" NOWRAP>
- Email count: <INPUT NAME="count" SIZE=5 value="1" READONLY>
- </TD>
- </TR>
- </TABLE>
- </TD></TR></TABLE>
- </FORM>
- <p> <b>Select the Provider you want and click on split to separate them in the form Below. For Instance if you want to separate gmail emails, you select gmail or you type the domain of the provider you want to separate, and click split.</b> </p>
- <p> </p>
- <TABLE CLASS="maincolor" CELLPADDING=8 CELLSPACING=0 BORDER=0>
- <TR CLASS="titlebarcolor">
- <TD VALIGN="TOP" COLSPAN=2 COLSPAN=2><h3><FONT CLASS="titlefont"> Separeted Email result </FONT></h3></TD>
- </TR>
- <TR CLASS="titlebarcolor">
- <td>
- <form NAME="extractor2" >
- <TEXTAREA NAME="splitter2" rows=12 cols=80 id="splitter2" >1
- </TEXTAREA>
- </form>
- </td>
- </tr>
- <tr>
- <td colspan="2">Total Emails=1 <INPUT TYPE="BUTTON" CLASS="button2" VALUE="Copy" onClick="copy3();"></td>
- </table>
- </td><td valign="top"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
- <!-- lite14 center right -->
- <ins class="adsbygoogle"
- style="display:inline-block;width:336px;height:280px"
- data-ad-client="ca-pub-9816945270938969"
- data-ad-slot="5610992245"></ins>
- <script>
- (adsbygoogle = window.adsbygoogle || []).push({});
- </script> <br><center><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
- <!-- lite14 link -->
- <ins class="adsbygoogle"
- style="display:block"
- data-ad-client="ca-pub-9816945270938969"
- data-ad-slot="6083739037"
- data-ad-format="link"
- data-full-width-responsive="true"></ins>
- <script>
- (adsbygoogle = window.adsbygoogle || []).push({});
- </script>
- </center> </td>
- </tr>
- </table>
- </DIV>
- <BR><BR>
- <center>
- <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
- <!-- lite14 billboard -->
- <ins class="adsbygoogle"
- style="display:inline-block;width:970px;height:250px"
- data-ad-client="ca-pub-9816945270938969"
- data-ad-slot="2049788932"></ins>
- <script>
- (adsbygoogle = window.adsbygoogle || []).push({});
- </script>
- </center>
- </div>
- <script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-32232018-6']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
- </center>
- </td>
- <td align="left" valign="top">
- </td>
- </tr>
- </table>
- </BODY>
- </HTML>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement