I have to get the text after spaces using string manipulation.
Ex : 01 UiPath Automation
In the above example, I have to extract all the three texts, but I don’t know how many spaces will be there between each text. How to achieve it. help me to resolve this.
inputString= "01 UiPath Automation"
textArray= inputString.Split(" ".ToCharArray, StringSplitOptions.RemoveEmptyEntries)
For Each currentItem in textArray
WriteLine-> currentItem.ToString
End For Each
In the above example there is a single space between Ui & Path & multiple spaces between other texts. In this scenario I have to remove only the multiple spaces and have to get Ui Path text as it is without splitting. Is it possible?