I want to remove only front space from below sting, so that multi lines remain same
Note: below data is one single string not multi lines but still front space should be removed, can any one help me with regex patt
And Thank you for explaining the expression!!!..
Thanks in advance
Chethan
Split(Environment.NewLine.ToCharArray, StringSplitOptions.RemoveEmptyEntries): This splits the original string into an array of lines, removing empty entries. Select(Function(x) x.TrimStart): This applies the TrimStart function to each line in the array. String.Join(Environment.NewLine, ...): This joins the modified lines back together with newline characters.