I’m brand new into using and working with Uipath, and despite several videos and google searches I can’t seem to find a solution for my problem.
I’ve made a Foe each workflow iterating through some PDF files in a folder, I can display the file path, but I can’t use it in my “Read PDF Text”, my assumption is that it doesn’t return the value including " ", så the filepath in “Read PDF Text” isn’t complete.
I closed down the program and opened the xaml again, now it works. really don’t know why, nothing changed from my first tries.
But to answer, then you can say if my code is good
Output is “inputString” which is used in the assign "System.Text.Regular etc.)
The message box “Faktnr” came out empty, that’s why I assumed that the filepath in “read PDF Text” was incorrect.
But maybe you can help with an other issue I have with the next assign;
In my assign I have this piece of code;
System.Text.RegularExpressions.Regex.Match(inputString,"(?<=KM).+ ").ToString
However it tends to return to many substrings, can I retrieve (x) chars after it has found the match, i.e match=KM - retrieve 1 substring but only one, or maybe match=KM - retrieve 10 characters?
When I run this assign I get this result
I’m only interested in the first substring.