Find and replace in selection

Find and replace in currently selected editor text.

You are now following this Submission

Uses the MATLAB Editor API and STRREP to find and replace all occurrences of a substring within the currently selected editor text.

Cite As

Sam Johnson (2026). Find and replace in selection (https://www.mathworks.com/matlabcentral/fileexchange/38264-find-and-replace-in-selection), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Environment and Settings in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

The selection is now maintained after replacement.

1.0.0.0