转义字符 \\表示一个反斜线字符\。
加个@,其它类似。string ipEnd = @"\s*\n*</[a-s]{4}>";