findreplace

This function finds and replaces strings in a text file
ダウンロード: 13.3K
更新 2005/12/27

ライセンスの表示

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 AnswersCharacters 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