image thumbnail


version (486 KB) by Michael Robbins
Search & replace multiple files with multiple search & replace pairs.


Updated 27 Jul 2005

No License

SEARCHREPLACEMANYGUI This is the graphical version of SearchReplaceMany with many neat little features.

This program will search all files in the list, TargetFiles, for all the strings, SearchStrings, and replace them with their corresponding replacement strings, ReplaceStrings.

For example, you may change all instances of "COMPANY" to "THE MATHWORKS" and all instances of "CLIENT" to "MICHAEL ROBBINS" simultaneously on C:\MATLAB7\LICENSE.TXT and C:\WORK\SNR.M

Provide this function with a CellString of target files, search strings (regex), corresponding replacement strings (regex), prefixes to be applied to all search strings, suffixes, prefixes to be applied to all replacement strings, and suffixes. Also provide a 1 (true) to assume strings are regular expressions or 0 (false) to take strings literally.

It's easier to read the code than forme to explain it.

Cite As

Michael Robbins (2022). SearchReplaceManyGUI (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!