Replace all space onyl one space


I read a document but There seems to be a lot of space between them

I want to see them onlyn one space
REZERVASYON EXPLANATION AMOUNT COMMISSION

Hi @Murat

Output = System.Text.RegularExpressions.Regex.Replace(Input, "\s+", " ").Trim()

Regards,

Good but I have a pdf and everything is happening side by side


Can we do it line by line?

@Murat

Like below you want?

System.Text.RegularExpressions.Regex.Replace(Input, "\s+", Environment.NewLine).Trim()

Hie @Murat try this method

String.Join(" ", inputText.Split({ " " }, StringSplitOptions.RemoveEmptyEntries))

cheers happy automation

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.