1
00:00:00,510 --> 00:00:07,150
Hey, and welcome to our email extractor application, and this is going to illustrate how to use regex

2
00:00:07,150 --> 00:00:13,110
so regular expressions to search string values and then return corresponding values, as well as how

3
00:00:13,110 --> 00:00:15,970
we can get unique values out of a string.

4
00:00:16,170 --> 00:00:22,260
So the objective here is to be able to post a bunch of content, extract out all the email addresses

5
00:00:22,380 --> 00:00:25,500
and return not only unique email addresses.

6
00:00:25,620 --> 00:00:28,740
And the idea from this came from an application I used to have.

7
00:00:28,740 --> 00:00:34,740
I had a website that just had this particular tool on it, and I had thousands of visitors, believe

8
00:00:34,740 --> 00:00:38,160
it or not, come into this to use this email extractor.

9
00:00:38,160 --> 00:00:41,070
And all it was was just a simple JavaScript generator.

10
00:00:41,220 --> 00:00:46,830
So you can create these really useful generators that people can utilize within their work in order

11
00:00:46,830 --> 00:00:49,710
to extract information and make use of it.

12
00:00:50,070 --> 00:00:51,610
So let's let's let me show you.

13
00:00:52,050 --> 00:00:57,360
So the way that this works is you come in and you paste your text so it doesn't always have to be email

14
00:00:57,360 --> 00:00:57,930
addresses.

15
00:00:58,050 --> 00:01:00,020
It can be any text that you want.

16
00:01:00,180 --> 00:01:04,110
And what we're doing with the JavaScript is we're recognizing a pattern.

17
00:01:04,110 --> 00:01:08,850
And once we detect the pattern that we extract out the email addresses and it actually doesn't matter.

18
00:01:08,850 --> 00:01:13,650
Even if there's duplicates here within the email, we're still going to extract those same four email

19
00:01:13,650 --> 00:01:17,210
addresses because we're checking to see for unique values.

20
00:01:17,460 --> 00:01:22,770
And again, another really useful generator that you can utilize and you can enhance these types of

21
00:01:22,920 --> 00:01:26,820
generators in order to produce better workflow and more efficiency.
