SearchAndReplaceMan​y

버전 1.0.0.0 (4.36 KB) 작성자: Michael Robbins
Search & replace multiple files with multiple search & replace pairs.
다운로드 수: 2.1K
업데이트 날짜: 2005/7/27

라이선스 없음

SEARCHREPLACEMANY This is the command line version of SearchReplaceManyGUI.

*** THIS VERSION WILL WORK ON ANY VERSION OF MATLAB WITH REGEXPREP AND ON ANY OPERATING SYSTEM ***

This program will search all files in the list, TargetFiles, for all the strings, SearchStrings, and replace them withtheir 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.

인용 양식

Michael Robbins (2024). SearchAndReplaceMany (https://www.mathworks.com/matlabcentral/fileexchange/6987-searchandreplacemany), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R14SP1
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

It doesn't fit in this little box!