I want to get the number to the right of the word “Total”. I can’t use anchors because the PDFs I’m using are inconsistent in format. I am able to find the line that contains “Total”, but I’m struggling to get the value to the right of it because of the inconsistency. For reference, here is an example of two lines that are possible:
Hello @mplo724
Instead of splitting you can directly get the value using Regex (?<=Total )($\d+.\d+ $\d+.\d+|\d+.+)
Just Use Matches Activity or
System.Text.RegularExpressions.Regex.Matches(TextContaingValue,“(?<=Total )($\d+.\d+ $\d+.\d+|\d+.+)”)
In an Assign Activity To get the required Output
Check this Sample Workflow for better Understanding RegexMethod.xaml (8.4 KB)