ReplaceAll() public method

Replaces all occurences of some text with the specified replacement.
The newline (\n) char is used as the line break.
public ReplaceAll ( Regex regex, string replacement ) : ArrayList
regex System.Text.RegularExpressions.Regex A regular expression used to find the text to be replaced.
replacement string The text that will be used as a replacement.
return System.Collections.ArrayList
	public override bool Execute () {
		SearchOperator searchOp = new SearchOperator(Base.Document.Subtitles);
		replacedSubtitles = searchOp.ReplaceAll(regex, replacement);
		if (replacedSubtitles.Count  == 0)
			return false;

		TreePath[] paths = null;
		CommandTarget target = CommandTarget.Normal;
		GetCommandData(out paths, out target);

		SetCommandTarget(target);
		Paths = paths;
		if (Paths.Length > 0)
			Focus = Paths[0];

		Base.Ui.View.Selection.Select(Paths, Focus, true);
		return true;
	}