@alexey.noskov I am trying to add and removing some space before the colon and after colon
the before and after value should be dynamic. if the colon after we are not find any space we need to add one space.
Please fi…...Replace(new Regex(pattern), label + after_valueSpaces...}"); doc.Range.Replace(new Regex(pattern), label + after_valueSpaces...