Enhance your coding with the IReplacingCallback method! Customize replace operations efficiently by executing user-defined actions for each match found.... Replace ( new Regex ( "New York City|NYC" ), "Washington"...mainDoc . Range . Replace ( new Regex ( "\\[MY_DOCUMENT\\]" ), ""...