I’m hoping to find some assistance with Regex, I’m trying to pull specific text from a PDF and having a lot of trouble with it. The selector initially worked but is now failing and when attempting to make changes to it the selector now highlights the entire page so I’m not sure that will be the best route to follow. Looking through the forums it seems Regex is preferred for PDF’s anyway - I’ve not used Regex as of yet so hoping for some help here while I’m learning.
I have a screen attached of the bottom of a large PDF, I need to capture the dollar amount in the screen:
This expression would work in that case
System.Text.RegularExpressions.Regex.Match(yourstringvariable.ToString,“(?<=Total Transactions Accepted for File:).+(?=\s)“).ToString.Trim
Please do not suggest regex101.com! It does not have .net, so anything made could potentially not work as .net does not have a lot of the higher-level syntax as in other languages.