regexprepfile

버전 1.1.0.0 (2.19 KB) 작성자: Richard Crozier
Performs regular expression replacement in a file or files
다운로드 수: 270
업데이트 날짜: 2013/9/11

라이선스 보기

regexprepfile(filename,exp,repstr) performs a regular expression replacement using the pattern exp in the file filename with the string repstr. exp, repstr may also be cell arrays of strings of the same size, in which case the replacement is performed for each pair by performing a regexprep using corresponding elements of the inputs. Alternatively repstr may be a string and exp a cell array, in this case the single string repstr will replace all the patterns in exp.

-----

regexprepfile replaces the string by creating a temporary copy of the file in which the replace is to be performed, replacing it in this file, and copying the file back to the original location for safety.

---

Note regexprepfile requires 'samesize.m' my file exchange contribution here: http://www.mathworks.com/matlabcentral/fileexchange/36636-samesize

인용 양식

Richard Crozier (2024). regexprepfile (https://www.mathworks.com/matlabcentral/fileexchange/43396-regexprepfile), MATLAB Central File Exchange. 검색됨 .

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

받음: samesize

줌: refactor_fcn_name

Community Treasure Hunt

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

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

asthetic change to file description, no change to file

1.0.0.0