I have PDF files and I need to extract 2 values.
for example, Name and phone number.
I create a regex to extract these values as separate. because I need to use this in a different place separately.
my problem is, in some files, I have only one name and one number in another mabey I have 2 or 3, etc… so it is not fixed.
And I need to check if the name = “Any Name”, save the name in a variable and number in another variable.
I can do this if I have one name and number, but I get difficult because I need to create this dynamic.
Also, I can prin all value from regex but how I can use it if condition. I don’t want to use excel if there another way that will be better.
could anyone help me, please?