I hope you tried it.
So let's look at how we could solve this.
All right.
So I'm going to explain now if you want to try it yourself just pause the video.
Okay.
So first of all we have either A0A plus 49 or A00 49.
So let's start off with the plus 49.
And I'm going to use a group for that I need the backslash plus 49 in order to use the the literal plus
as you can see here.
Then the alternative is A0049.
So it's either plus 49 or it's 0049.
And then the other alternative is it's just a zero.
So as you can see it's just this zero here.
But as you can see all the others are now active as well.
All other zeros are active as well.
And I'm gonna add a question mark here because I'm saying there can be a zero or there can be none.
So in those cases, there are none.
In those two cases, only in that case we have a zero.
So now let's check out what this question mark means.
It means matches the previous element 0 or 1 time okay.
So zero in those two cases and one in line eight okay.
That's not it.
That's just the beginning of the number right follows a one.
So now we have zero one and then a six or a seven.
So I create a group.
Again I'm just going to say six pipe seven within my brackets.
So so far everything is good.
Then it can be any number.
So now I can just use backslash d.
Then we have a slash and then we have another number.
And it's not just one it's eight digits.
So we can just say okay it will be eight digits.
And there we are.
That's the structure I'm going to add it just below here.
So that's our pattern in order to get German telephone numbers.
Well at least the ones that we see here and in general you should find all German telephone numbers.
Now you could of course go ahead and try the same thing for your country number.
So wherever you're from, wherever you live, check out the telephone numbers or the mobile phone numbers
and see how the structure of those mobile phone numbers is, and try to build a pattern for that.
You can even share that if you want.
That would be interesting to see for everything, everyone else in the course and me myself as well.
It would be very interesting to see where you're from and how the structure of your countries telephone
numbers or mobile phone numbers is all right.
Great.
So I hope you managed to do that.
And if you didn't, I hope you could follow along the structure that I just explained.
Now let's go ahead and well, actually let's check out the Mr. and Miss example again because here we
have either Mr. Pandita or we have Mr. Mueller without the dot.
So how can I check out if the dot is there or not.
Well by now you should know you can use a question mark for that okay.
So try that and we'll see how we did it in the next video.