Replace(String, String, String, RegexOptions, TimeSpan) In a specified input string, replaces all strings that match a specified regular expression with a specified replacement string . Additional parameters specify options that modify the matching operation and a time-out interval if no match is found.