using System;
public class Test
{
public static void Main()
{
string xyz = "This is Rock Balbao.I am the good guy. I am Awesome! And I am Cool";
string[] xyzArray = Array.ConvertAll(
xyz.Split(new String[] { ".", "!" }, StringSplitOptions.RemoveEmptyEntries),
x => x.TrimStart()
);
foreach (string str in xyzArray)
{
Console.WriteLine(str);
}
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCXN0cmluZyB4eXogPSAiVGhpcyBpcyBSb2NrIEJhbGJhby5JIGFtIHRoZSBnb29kIGd1eS4gSSBhbSBBd2Vzb21lISBBbmQgSSBhbSBDb29sIjsKCQlzdHJpbmdbXSB4eXpBcnJheSA9IEFycmF5LkNvbnZlcnRBbGwoCgkJCXh5ei5TcGxpdChuZXcgU3RyaW5nW10geyAiLiIsICIhIiB9LCBTdHJpbmdTcGxpdE9wdGlvbnMuUmVtb3ZlRW1wdHlFbnRyaWVzKSwKCQkJeCA9PiB4LlRyaW1TdGFydCgpCgkJKTsKCQkKCQlmb3JlYWNoIChzdHJpbmcgc3RyIGluIHh5ekFycmF5KQoJCXsKCQkJQ29uc29sZS5Xcml0ZUxpbmUoc3RyKTsKCQl9Cgl9Cn0=