using System.Text.RegularExpressions;
public static void Main(string[] args){
string pattern = @"(?m)(?<=^(\s*)(?:[^\s:][^:\r\n]*)?: \|\s*)(?:\r?\n(?!\1\S).*)+";
string input = @"kind: ConfigMap
name: {{ .Release.Name }}-nginx-index-html-configmap
<title>Up & Running!</title>
font-family: Tahoma, Verdana, Arial, sans-serif;
<pre style=""float:left;"">
888 888 888 d88P 888 8888888P"" 8888888P"" 888 888 888d88888b888 888 888 8888888P"" 8888888b ""Y88b. 888
8888888888 88888888 ""Y8888P"" d88P 888 888 T88b 888 T88b ""Y88888P"" 888P Y888 ""Y88888P"" 888 T88b 888 Y88b ""Y8888P"" 888 </pre>
foreach (Match m in Regex.Matches(input, pattern))
Console.WriteLine(m.Value);