 In this video, we will find text in a PDF using Regex. To begin, let's copy the sample code and paste it into the Visual Studio Editor. I added the sample code link in the description box below. To find text in PDF, we will use the ByteScout PDF Extractor SDK. You can add a reference to the PDF Extractor SDK DLL in the Solution Explorer. Right click on Reference and select Add Reference. Look up the PDF Extractor SDK and add. Then, add your registration name and registration key in their corresponding properties accordingly. You can get your license details in the ByteScout dashboard. We will add our sample file in the Solution Explorer and set the copy to Output Directory to Copy Always. Then, load the sample file in the Load Document from File property. To use Regex, let's set the extractor.regex search to True. Then, let's add the Regex pattern to capture a text that match the following pattern. A two-digit number from 0 to 9 forward slash another two digits from 0 to 9 forward slash a four-digit number from 0 to 9. Which is the format of our invoice date. Once it finds the format in a page, it will return the text or the invoice date, its location in the PDF, its font name, font size, font color and font style. Now, let's run the program. Here's the sample PDF invoice with date January 1, 2016 and here's the output. For more tutorials, you may visit our YouTube channel and don't forget to hit the subscribe button. Thank you for watching.