This is Sample PDF file
Date: 22-03-2024
Invoice Number:12345asdghhj
Expected output : Invoice Number: ***********
Sorry since i can’t upload the original PDF file. copied few text from the PDF file .
We are reading the PDF file and store into string varaible and trying to replace all the values next to Invoice Number:
It not only date … it can be anything for example … We may have to find the “Invoice Number” and replace all the text next to it… Will this regex work ?