Aspose::Words::Range::Replace method. Replaces all occurrences of a character pattern specified by a regular expression with another string in C++.... auto doc = MakeObject < Document > (); auto builder = MakeObject...room." , doc -> GetText (). Trim ()); See Also Class Range Namespace...