The text of this article is not in this database — only its details are. Read it on the old site: Split String In C#
25 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Split String In C#
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Phatboi StudiosPosted Oct 16, 2023, 3:37 PM
Can you suggest an elegant way of doing this but appending 'and' the last item? For instance instead of "Mahesh Chand, Henry He, Chris Love, Raj Beniwal, Praveen Kumar" - it would be "Mahesh Chand, Henry He, Chris Love, Raj Beniwal and Praveen Kumar" - if this is coming from a dynamic list and not a hard-coded string[]
Simmy✌Posted Jul 8, 2020, 11:09 AM
Hi . I have a string input as 5000.0 and I want to make it as 5000 . how to do ? plz help
Farhan AhmedPosted Jan 28, 2020, 4:44 PM
How separated ArrayList numbers with comma?
Rajesh VaishnavPosted Jul 18, 2019, 12:34 PM
String[] authorsList = authors.Split(','); will be used
Vb NjPosted Jul 9, 2019, 1:48 PM
String[] authorsList = authors.Split(", "); Gives "CS1503 Argument 1: cannot convert from 'string' to 'char'".
Vb NjPosted Jul 9, 2019, 1:46 PM
Listing 1 does not work for me. I'm using Visual Studio 2019/.NET 4.7.2.
Kamal MehtaPosted May 23, 2019, 3:51 PM
Great compilation. Would be nice if you highlights some of the problems or caveats it comes with. Especially incorrect usage can cause memory issues in production
Kasun CharithaPosted Apr 10, 2019, 7:29 AM
I want to split character by character . how to do? ex 1994 >>> 1 9 9 4
Rushi MehtaPosted Sep 24, 2018, 4:23 AM
Nic eArticle
Mahesh ChandPosted Sep 22, 2018, 11:15 AM
Article updated and formatted for .NET Core
conrad mbaPosted Feb 18, 2018, 2:58 AM
Nice one sir. well understood. Thanks
حارث منصورPosted Oct 2, 2017, 5:46 PM
Hello anyone can do this in Visual studio?? Take a string of comma separated values/names from the user. Split the string into multiple sub-strings based on the commas.Add all these sub-strings to a list.
Ajeet MishraPosted Jul 19, 2016, 5:50 AM
Nice
Amit Kumar SinghPosted Feb 22, 2016, 3:44 AM
Nice one sir
Upendra Pratap ShahiPosted Jun 29, 2015, 4:49 AM
nice sir..
Girish IyerPosted Jun 9, 2015, 1:20 AM
Nice article
JUKE BOXPosted Dec 12, 2014, 3:21 PM
what is the significance of stringsplitoptions.none here????