Split(environment.new line)

Hi guys!
Someone know how split a string using environment.newline?
The purpose is just to split text
Ty

4 Likes

System.text.ReularExpressions.RegEx.split(“Your string”, “\n”)
image

4 Likes

try this code

 myString.Split(new String() {Environment.NewLine},
                                       StringSplitOptions.None)
4 Likes

@Elya

yourString.Split(Environment.NewLine.TocharArray)

The above expression will split your String based on New line as delimiter and produce array of Strings as output.

10 Likes

Ty @ashley11 for your answer! That work fine :slight_smile:

Ty @lakshman it’s the way I prefer. Ty for your help :+1:

1 Like

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