Hi team,
I have a test like this
I want to remove a characters in a sentence like
Shanti failed to
grasp the opportunity
Output:
Shanti failed to
I want to remove the second line.
Hi team,
I have a test like this
I want to remove a characters in a sentence like
Shanti failed to
grasp the opportunity
Output:
Shanti failed to
I want to remove the second line.
linesArray = yourTextInput.Split({Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries)
linesArray.RemoveAt(1)
modifiedText = String.Join(Environment.NewLine, linesArray)
You can try the split function to remove the first line in input String,
- Assign -> Input = "Shanti failed to
grasp the opportunity"
- Assign -> Output = Input.Split(Environment.NewLine.ToArray, StringSplitoptions.RemoveEmptyEntries).First
Check the below workflow for better understanding,
Hope it helps!!