フィルターのクリア

How to replace double quotes with two single quotes in string in MATLAB R2020 ?

10 ビュー (過去 30 日間)
a = regexprep(' "C:\Users\User's PC\Desktop\note.txt" ' , ' " ' , ' ' );
a = regexprep(' "C:\Users\User's PC\Desktop\note.txt" ' , ' " ' , '');
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

採用された回答

Walter Roberson
Walter Roberson 2021 年 10 月 7 日
a = regexprep(' "C:\Users\User''s PC\Desktop\note.txt" ' , '"' , '''''' )
a = ' ''C:\Users\User's PC\Desktop\note.txt'' '

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by