I require a regular expression which does following
- Match if first alphabet of first word in starting line is in
lowercase . - Starting from word containing above alphabet , replace with empty
string until a word starting with uppercase occurs
This is what I tried:
string result = Regex.Replace(input,@"^[a-z]\s?[a-z0-9]\s?[^A-Z]","");
This is what should happen:
Sample input = “of !jgf area. The wealth of nation”
Required Output =”The Wealth of nation”
What should I do to improve/correct?
You could just do like below: