Split(environment.new line)

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

2 Likes

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

1 Like

try this code

 myString.Split(new String() {Environment.NewLine},
                                       StringSplitOptions.None)
1 Like

@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.

2 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.