I want to extract first letter of each word in a string. I have done a lot of googling and still without any aid.
For example,string text = "I Hate Programming";
The desired answer should be like:
IHP
I know you guys are very good, I'm just new. thanks.
If you know that your delimiter is a space, you can do the following.
Basically you split your string by the space character, and grab the first letter using substring of each word.
With a little bit of LINQ:
If you want to include characters likes - and ' as the start of words, just add them to the list of characters in the call to Split().