Regular expression to replace with empty string

c#, regex

Solution

You could just do like below:

string result = Regex.Replace(input,@"^[^A-Z]*","");

Problem

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?

Original source