use READ PDF or READ PDF with OCR or READ TEXT FILE activity to get the data from the file and save them in a string variable named str_input
use MATCHES activity and pass the string variable str_input as input and mention the expression we want and get the output with a variable of type matches
now pass the output variable from matches as input to FOR EACH activity
–inside the loop use a assign activity like ths str_output = str_output + item.ToString
where str_output is a variable of type string with default value as string.Empty defined in the variable panel
–now use a WRITE TEXT FILE activity next to this FOR EACH loop and mention the input str_output variable and the file name with its folder path
Inside the Body i put Assign ( To= str_output and Value = str_output + item.Tostring)
Thats the only thing i have i that for each loop now.
Do you want me to put the " Write Text File " outside the loop?
The i get this message " Main.xaml: Compiler error(s) encountered processing expression “str_output”.
‘str_output’ is not declared. It may be inaccessible due to its protection level."
And if i put the " Write Text File " inside the loop?
it only writes one time.
make sure that str_output scope is changed to whole sequence in the variable panel
and yes pls put the write text file outside the loop
as this string variable str_output will now hold all the lines we want
and if we have passed this as input to the write text file activity it will overwrite the current file with this str_output value
yah ofcourse arr_lines = Split(strinput,“,”)
where arr_string is a variable of type array of string which will neglect the delimiter , and keep the wordings around it
Cheers @Anders_Dahl