Get character after certain character from a String
c#, string
Solution
`LINQ` solution:
var str = "*This is a string *with more than *one blocks *of values.";
var chars = str.Split(new char[] {'*'}, StringSplitOptions.RemoveEmptyEntries)
.Select(x => x.First());
var output = String.Join("", chars);
Problem
I need to get a characters after certain character match in a string. Please consider my Input string with expected resultant character set. Sample String ``` *This is a string *with more than *one blocks *of values. ``` Resultant string ``` Twoo ``` I have done this ``` string[] SubIndex = aut.TagValue.Split('*'); string SubInd = ""; foreach (var a in SubIndex) { SubInd = SubInd + a.Substring(0,1); } ``` Any help to this will be appreciated. Thanks