Find and Replace in Files

Perform find and replace operations against a folder structure of MATLAB .m files.

You are now following this Submission

This app enables you to search for text in *.m files in a folder or folder structure. Then, you may apply replacements to the instances found. Regular expressions may optionally be used in the search text. Currently only *.m files are supported.

This code will modify multiple files within a specified folder structure. Although the app does back up the modified files to your TEMP directory, I STRONGLY RECOMMEND before using this that you also back up your code folder or commit your code to a version controlled repository.

Built by MathWorks Consulting and *requires* you to install GUI Layout Toolbox and Widgets Toolbox. This app is dependent on functionality in those toolboxes.
https://www.mathworks.com/matlabcentral/fileexchange/47982-gui-layout-toolbox
https://www.mathworks.com/matlabcentral/fileexchange/66235-widgets-toolbox

This app was built by MathWorks Consulting Services. To learn how a MathWorks Consultant can help improve your software development skills, please see:
https://www.mathworks.com/services/consulting/proven-solutions/software-development-with-matlab.html
https://www.mathworks.com/services/consulting.html

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.290

Bugfix for special characters. Switched code font to Monospaced.

1.0.156.0

Bugfix: corrected the hyperlink location where the original files are backed up

1.0.148.0