findreplace
버전 1.0.0.0 (2.77 KB) 작성자:
Fahad Al Mahmood
This function finds and replaces strings in a text file
SYNTAX:
findreplace(file,otext,ntext)
findreplace(file,otext,ntext,match)
file: text file name (with or without path)
otext: text to be replaced (old text)
ntext: replacing text (new text)
match: either (1) for match case or (0) to ignore case. Default value is (1)
Example:
findreplace('sample.txt','Moller','Moler');
findreplace('sample.txt','jake','Jack',0);
findreplace('sample.txt','continue it is','continue its',0);
인용 양식
Fahad Al Mahmood (2024). findreplace (https://www.mathworks.com/matlabcentral/fileexchange/9447-findreplace), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R14SP3
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
Help Center 및 MATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.0.0.0 |