targetString text to be replaced.replacementString to replace the text with.optionscomparison options that determine how the target is matched.rangeRange where the replacement will take place.
Numbers of replacements done.