Split first space

Hey i need help. I want to split string “AA BB CC DD” to “AA” and “BB CC DD”.So i need to split only first space.How?

Hi @Majnuuk

Try out this syntax

output_string=Your_input_variable.Split(" ",c).First

Or else

You can use like this

Output_string_array = Your_input_variable.Split(" ",c)


Welcome to the forums

we can do following:
YourStringVar.Split(" ".ToCharArray,2)

1 Like

Thx, its working

Perfect. Once the final testing was sucessfully please mark the solving post as solution. So others can benefit from it. Thanks