Split string after 1st occurrence of a character

Hi Team,

I have string like -

String1 - No-1234 2000 abc xyz
String2 - No-123456 2021 abc xyz

I want to fetch No-1234 from string1 and No-123456 from string2, Number length can be variable
I want to split string after first space character

Hi,

please below string function to get the desired value.

yourstring.Split(" "c)(0)

It worked , will it always consider first space?

your welcome. yes Hitesh. Good night.

Thankyou !!!

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