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 |