- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmail_Extractor.html
More file actions
Latest commit
59 lines (51 loc) · 2.17 KB
/
Copy pathEmail_Extractor.html
File metadata and controls
59 lines (51 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<htmllang="en">
<head>
<metacharset="UTF-8" />
<metaname="viewport" content="width=device-width, initial-scale=1.0" />
<title>🏴‍☠️ Complete Javascripts Course</title>
<linkhref="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous" />
<style>
</style>
</head>
<body>
<br/>
<br/>
<center>
<!-- <input type="text" id="item"> -->
<br/>
<divid="wrapper">📃 🏪 👾</div>
<br/>
<divid="message">Complete JavaScript Course</div>
<!-- <input type="button" class="btn btn-outline-warning" onClick="lookUp()" value="Find Text"> -->
<formname="myForm">
<textareaname="txtarea" rows=12cols=100></textarea><br><br>
<inputtype="button" onclick="lookUp()" value="get emails"><br><br>
<textareaname="txtarea2" rows=12cols=100></textarea>
</form>
<br/><br/>
</center>
<script>
varmessage=document.getElementById("message");
varoutput=document.getElementById("output");
functionlookUp(){
varrawTxt=document.myForm.txtarea.value;
vareData=rawTxt.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi);
varhtml="";
varholder=[];
//document.myForm.txtarea2.value = eData.toString();
for(varx=0;x<eData.length;x++){
if(holder.indexOf(eData[x])==-1){
holder.push(eData[x]);
}
}
document.myForm.txtarea2.value=holder.join(' | ');
}
</script>
<scriptsrc="https://code.jquery.com/jquery-3.5.0.js"
integrity="sha256-r/AaFHrszJtwpe+tHyNi/XCfMxYpbsRg2Uqn0x3s2zc=" crossorigin="anonymous"></script>
<scriptsrc="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<scriptsrc="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"></script>
</body>
</html>