I have a string
I am an automation developer.
Need output as
I
AM
AN
Automation
Developer
Can anyone help on this
I have a string
I am an automation developer.
Need output as
I
AM
AN
Automation
Developer
Can anyone help on this
Hi @Soumith
Assign activity:
outputArray = inputString.Split(" ".ToCharArray, StringSplitOptions.RemoveEmptyEntries)
Hi @Soumith
inputString= "I am an automation developer"
textArray= inputString.Split(" ".ToCharArray, StringSplitOptions.RemoveEmptyEntries)
For Each currentItem in textArray
formattedWord = currentItem.Substring(0, 1).ToUpper() + currentItem.Substring(1).ToLower()
WriteLine-> formattedWord
End For Each
inputString= "I am an automation developer"
textArray= inputString.Split(" ".ToCharArray, StringSplitOptions.RemoveEmptyEntries)
For Each currentItem in textArray
WriteLine-> currentItem.ToString.ToUpper
End For Each
Regards
Hi @Soumith
You can simply try this
String.Join(Environment.NewLine,InputString.Split(" "c, StringSplitOptions.RemoveEmptyEntries).Select(Function(word) word.ToUpperInvariant()))
Cheers!!
Hi @Soumith
- Assign -> Input = "I am an automation developer"
- Assign -> Output = ""
- For each -> Input.Split(" ")
- Assign -> Output = Output+Environment.NewLine+currentItem
- Write Line -> Output.toString.Trim
Check the below image for better understanding,
Output as expected,
Hope it helps!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.