hello guys i want to read multiple info from pdf, I use the pdf read activity to read pdf and regex expression to read but how i can read all the numbers that exist in this sheet of pdf
if you know how to read all this information please tell me
assuming txt = output of read pdf
-
assign
matches(matchCollection variable) = System.Text.RegularExpressions.Regex.Matches(txt, "([\d]{8})")
-
loop over matches (type argument = system.regularexpressions.match) , in the loop you can print
item.groups(1).value
to get the actual number
uipathF.xaml (7.2 KB)
thanks to answer, but if i want just to read that numbers start with 84?
change the regex to this @VAZQUEZ_SOSA_LUIS_ALBERTO
i assume its always 8 digits
(84[\d]{6})
System.Text.RegularExpressions.Regex.Matches(txt, “(84[\d]{6})”)
1 Like
it works thank you
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.