using System;
using System.Collections.Generic;
public class program
{
internal static List<string> extract_only_words_with_first_letter_lowercase(string s) {
List<string> words = new List<string>();
int start = 0;
int end;
while ((end = s.IndexOf(" ", start, StringComparison.Ordinal)) != -1) {
string word = s.Substring(start, end - start);
if (char.IsLower(word[0])) {
words.Add(word);
}
start = end + 1;
}
if (char.IsLower(s.Substring(start)[0])) {
words.Add(s.Substring(start));
}
return new List<string>(words);
}
public static void Main(string[] args)
{
string s = "C# is a General-purpose high-level pRogramming language";
List<string> words = extract_only_words_with_first_letter_lowercase(s);
foreach (string w in words) {
Console.WriteLine(w);
}
}
}
/*
run:
is
a
high-level
pRogramming
language
*/