I want to get value from the output string extracted from extract pdf.
I just want the value 14308
Rest others I don’t want
Thankyou.
I want to get value from the output string extracted from extract pdf.
I just want the value 14308
Rest others I don’t want
Thankyou.
Input = "m m m m m m m $14,308 00"
Output = System.Text.RegularExpressions.Regex.Match(input,"\d+\,\d+").Value.Replace(",","").Trim
Try this one.
System.Text.RegularExpressions.Regex.Match(yourString, "(?<=\$)\d+\s*").Value
Thanks,
Ashok ![]()
Input is very big since its from pdf, the given is just a minor part.
Thanks
I will try and update
Thanks
Actually it is not working. It worked for the first but not working for second pdf. The value is blank
Please try below
Input = "m m m m m m m $14,308 00"
Output = System.Text.RegularExpressions.Regex.Match(input,"\d+[.,]?\d*[.,]\d+").Value.Replace(".","").Replace(",","").Trim
For context I want that specific value in the pdf.
The value is already stored in a variable and it should check if the value is present.
For eg
var = 14031
It should search var, in pdf remove all the extra data, (“,”, “.00”, “$”)
Apologies if there was any confusion in my statement.
Please follow the above steps and you can acheive the output from the PDF which contains the value and later please use the if condition and give the syntax as
var.trim.equals(output.trim)
If those matches then place the further steps in then sequence and if those doesn’t match then place that relevant steps in else sequence.
Regards
I have used this can you please verify if this correct
Variable: extractedNumber
Value:
System.Text.RegularExpressions.Regex.Match(yourStringVariable, “\b” + numberToMatch + “\b”).Value.Replace(“,”, “”).Replace(“.00”, “”)
Please check with the above process. Here in the process used by you will not give the exact output as you required.
Regards
Ok, will check and update you.
Thanks
Hi @vrdabberu Thanks for your time, its working
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.