findreplace
Versione 1.0.0.0 (2,77 KB) da
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);
Cita come
Fahad Al Mahmood (2026). findreplace (https://it.mathworks.com/matlabcentral/fileexchange/9447-findreplace), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R14SP3
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Characters and Strings in Help Center e MATLAB Answers
Tag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
