we'll come back to surgery. Introduction course heretics.
Let's continue where we left off
We'll go over length. Of course.
We already covered the Quanta fires.
There are a little bit more wild right, the serum or one or more for Sierra one,
for it is lost and will actually go over
when it's exactly a particular amount of characters or when it's a range of characters, right?
So this case again, it's much easier to explain
with numbers, but it can also be applied a words and later in the lesson, you will see the Woodwards.
But for now, let's start with numbers.
Now if I do dash plus, you can see
I'm detecting everything sort of frank.
in here you see two very familiar formats. Nine numbers are nine digits, right? Which is basically the same model numbers in a U. S. Social Security number.
Or you can see 16 digits down here, right, which is basically the secrets of a credit card.
let's see, you want to pick on Lee one or the other. In this case, if you know, for example, that it's exactly
you can, for example, to do this right? And it would attack nine digits,
right? Or for a credit card, Right.
And then, for example, right to 16.
And then it takes 60. Unlike the capture,
uh, the brackets to score brackets. When you use these type of brackets,
you actually 10 minutes 10 0 you know, it's not 10 It means the actual number that you're trying to say.
Okay, Kevin. So I understand that that the number, it's the amount of characters I want to see. Okay, So why do you have dashes and zeros? Well,
here's the thing. Right
or you're trying to find, Let's say, your Social Security number.
There might be several formats, right? And here's where we start adding up what we learned so far, right? So you know the first sequence of numbers. It's probably three numbers, right? And then you
there might or might not be a dash or
space. Now, if remember carefully correctly
and dash, you have to break in
He used to let a question mark, which is 01
You can see it's starting to build itself that followed by that
in the second set, menus to numbers. And again
just to cheat. You do the white space
and did or the dish.
You okay? It's making sense.
What about now? Well, something again right now. This time it's four digits, right? So
And then this case, you go like, Oh, um
But at the end, there's no white spaces or nothing. Okay, if it's an email, you know,
you could, for example, imagine that. Okay, this is gonna be within an attachment. You actually
imagine this white space at the end, and you can do this, actually. And now you can see that
it does detect all three sequences and it detects none for the credit card. And again we're detecting. It's either
three digits followed by or not a space or eight ash, right toe digits
than two digits. Again, with or without the space for dash,
I followed by four digits, which is to form out of social your number and here to basically learn just now
the Red IX for detecting social security numbers.
Now, how does it work for carts? Credit cards? Then I feel like our cars a little bit easier.
It's a little more cheating issue if you want to call it that way.
about a year face year
around, right? You know, the Carter, the credit card sequences four blocks off, four para tres four digits, Right?
How does it work for us, then? Well, it's pretty simple. Literally. Copy pays this four times
Why? Four times to serve? Four blocks? Four characters. And it's always going to be four characters and again, either with or without dashes or white spaces. And here you just learned
Dad quickly had to build a tragic for a credit card detection.
Now let's say Oh, but what if it's a bank account number? Or let's say, Oh, what about it's Ah,
I don't know. My card has 10 digits. Instead, off 14 you're like, Okay, so how does that work? Well, you know, it's It's 36 months off, five
off. Whatever. You know, that's 15. Sorry. Uh
Great. So let's see, it's 15. Right? Is 3695 gets one.
How long you have to do?
Modified this little number here. Three seconds of five,
55 And guess What? What was that? Nothing meets, but neither wanted before. Five dash before five
for five years. He meets it,
so make sure you can literally copy face down
Are you gonna literally removal
Oh, Kevin. But it's still the victim. The one that thought off course it is cause this 555 with or without spaces and therefore he will detect them.
sometimes you might have false Pollock. That's something that might be realistic, right?
There are chances you're gonna find false positive. Again. There's a minimum of 10
15 detective here. And that's exactly what's here. 15. That's the reason this one in being detectives, because this one has nine.
not that much frequency. Now,
how about the phone number?
All right, how will we build one for a phone number? Right. So by us full number,
it's built with right
And then you will say sometimes it's three numbers,
or might not have a space
again. You might or might not have to whisper and disease.
race this and not confuse you. Right?
You have another three numbers, right?
Do it. Ask you. Some people put in their formatting
three numbers. Sorry.
some people leave a space,
and then you have an additional
detection purposes, we're gonna put a space in there at the end,
Men. And there's a full number. Right? And you will be like phone.
Oh, Kevin, guess what? It didn't work. Oh, no. Why?
Three digits, right?
into the carcass broken,
and then you can see
everything looks perfect. So guess why it's not being detected.
Yep, You guessed correctly. Space.
So it was a tricky question, right? Tricking you.
But let's say it is the same thing again, right?
let's say it. Hand Stashes. It doesn't have dashes
It's broken because it
person made a typo because what still works. You could see still work while I was removing them. Regardless of where I start removing,
it's still gonna be working in this Casey.
It really doesn't matter. I can say for a couple of business
dash here. All right.
It will still follow the former again because your leader detecting for that space for dash here and here in the first segment, you also turn to take that closing bracket and beginning you turn to take if it's opened, Doesn't matter. Right? So now you know how
these work, right? You have to actually build three rabbits is so far in this lesson,
and there's more to come.