I have more than 2000 email addresses. which i have exported from feedburner. And the email address look like below;
[email protected] Active 12/05/2015 03:07
[email protected] Pending Verification 8/05/2015 01:07
I want to extract email address from the text file by removing Active, Pending Verification, Date [i.e. 8/05/2015] and time [i.e 03:07] using JavaScript.
I have created a JavaScript Program which something like below which working properly for removing Active, Pending verification text,
<script>
function extracter() {
var a = document.getElementById('input').value;
document.getElementById('output').innerHTML =
a.replace(/Active|Pending|Verification| /g, '');
}
</script>
<textarea id="input"></textarea><br/>
<br/>
<input type="button" value="click" onclick="extracter()"/>
<br/>
<br/>
<textarea id="output"></textarea>
And the output is,
[email protected] 12/05/2015 03:07
[email protected] 8/05/2015 01:07
And I want the below output. Just help me to remove "Date" and "Time",
[email protected]
[email protected]