UiPath Join Strings

I have this strings that are extracted from a PDF:
• Help with packing of goods, which increased
productivity of up to 6%
• Cashiering duties
• Liaising with external people

How do I check for every line if there is an bulletpoint in front and
If there is a bulletpoint, execute nothing
If there is no bulletpoint, combine the line with no bulletpoint (in this example is the 2nd line) to the above line that has a bulletpoint (in this example is the 1st line)?

My desired output is:
• Help with packing of goods, which increased productivity of up to 6%
• Cashiering duties
• Liaising with external people

This is my current script:
image

help appreciated!

Hey @audrxyx

try this solution

Sequence.xaml (8.9 KB)

hey @Ayman_Alabsi1,
thanks! but the strings are not fixed as it depends on each resume

how do i implement the solution in this workflow? i have disabled the sequence where i want that activity to be placed

all the required files and my workflow are here:
Recruitment.zip (7.0 MB)

Do you need this solution for all the information in the resumes or for specific part of it like (skills, experience…)؟؟

1 Like

hello! i need this solution for this part!


this is under the Experience switch :slight_smile:

Hey @audrxyx

So when you print the text which you read from PDF did you get the bullet point ?

If that is the case you can split the string with the bullet point and find the result.

Thanks
#nK

Hi @audrxyx hope you are doing well.
Firstly, data = extracted string.
Secondly, SplitData = data.split(environment.NewLine.ToCharArray)
Thirdly loop items in SplitData and perform if condition: item.Contains(“•”) and if it does not contain append it with previous string.

I think this will help you to get your desired output. I am also attaching the workflow for your reference that gives a basic idea of the logic you can enhance it by using different mechanisms to store and print and deleting the previous entry when it does not contain bullet points and so on
BulletPoints.xaml (10.5 KB)
.

Thank You,
Shubham Dutta

1 Like