I have to split the word in a sentence which contains more than 40 letters….
**For Example:**
Hi Pranesh....I am new to C# asp.Net...**pranuvideotitlepranuvideotitlepranutitleppranuvideotitlepranuvideotitlepranutitlep**
I want to find the word which contains more than 40 letters and want to delete the letters from the word so that it contains only 40letters….
Thanks
I love extension methods!
I would do something like this:
EDIT: The question wasn’t very clear. If you want to strip out all words less than 40 characters you could so something like:
Note I haven’t tested the above and it’s not very efficient. Probably want to change it to at least use a stringbuilder.