 Okay, now you might be wondering by knowing that you can also use regex for address matching. Though there are wide variants in address content and formatting but still you can use regex to match it at some extent. So before we write the regex, let us try to understand this simple address format. Here first set consisting of street number and street name followed by comma. And then there is a city name followed by comma. And then there is a state name abbreviation like in our case TX stand for Texas. And then in the last there is a zip code. So why I am telling you this because once you identify the pattern it becomes easy to write the regex. All right, now let us jump into the demo to write the regex for matching this home address. Okay, so here in the input text, I have added some sample address. Now first let us write the expression to match the street number and street name slash w and let us complete the group. Now this backslash w is not matching space. So let us add the space and comma in character class. And now let me repeat this group one or more time by adding plus sign. Now we can also match this city name using this same expression. So let us add this expression again into one group by adding this parenthesis. And let us repeat this expression two times. Now let us write the regex expression to match this state abbreviation. Now as you can see that this state abbreviation is always consisting of two character. So for that, let us define one group and in the character class, let us add the range and then repeat it two times followed by comma and space. Now the last one is a zip code. So for that, let us use backslash d in one group and let us repeat it one or more times and let us asset the end of this string. So yes, this is how we can create the working regex to match the address. Now let us use this same regex in PDF multi-tool to find the address in PDF file. Alright so in PDF multi-tool I have loaded one sample PDF file which contain address over here and over here. So let me click on this link and let us copy our regular expression which we have just created. Now when I click on this find button, so yes, now it is highlighting the magic address. So our created regular expression is correct. Now let us move to the next demo. Okay email address validation using regular expression is one of the most common task which may be required in any application which seek email address as required information in registration step or there may be a more use cases. Okay so I think no need to explain the format of email address as we all have our own email address, right? So let's jump into the demo to match the email address. Alright so here I have added some sample email address in the input text. Now first let us write the regex expression to match the username or say first let us write the expression to match the character before the at the rate part. Now this username portion is consisting of capital A to capital Z. So let us define the character class and let us write the range over here and then digit and then there can be an underscore and then there can be a dot and then also there can be a high fun. Alright now let us repeat this character one or more time by adding plus sign character over here and then let us add the at the rate character sign over here. Now after this at the rate sign there is a domain name and then for domain name we need to write this expression character class and let us define the range in the character class. Let me copy it over here. In the domain name there can be either dot or high fun and same way let us repeat this character one or more times by adding this plus sign character over here and then let us add the dot. Now to match the last part there can be either minimum two character and maximum four characters say for example dot com dot edu dot in etc. So for that let us use this expression again in the character class. Let us define the range and let us limit the length through to four. So this is the working rejects to match the email address. Now let us find the email address in PDF file using this same rejects which we have created but in PDF multi tool. Alright so in the PDF multi tool I have added one sample PDF file which contain email address over here and over here. So let me click on this link which open this pop up and let me copy our regular expression in this text box. Now when I click on this button it is highlighting the valid email address. So another email address is also over here and then over here and here. Okay so this is how we can use our rejects to find the valid email address in this tool. Alright and with this we have reached the end of the module. I hope you will take the time to work through the demos for yourself so you can see how all of this works. I hope you enjoy this course feel free to improve the rejects we learned in the demo over here. Alright guys thank you for taking time and watching this video.