look-around

Look Around does not deliver expected result with .net

I want to use a look-ahead regex for replacement with the System.Text.RegularExpression.Replace(...) method. Now I am wondering what's wrong. Look at this example code: string input = "stackoverflow"; string replacement = "#"; var pattern1 = "(?=[a-z])o"; var result1 = Regex.Replace(input, pattern1, rep...