How to replace double quotes with two single quotes in string in MATLAB R2020 ?
9 views (last 30 days)
Show older comments
Divyesh pandav
on 7 Oct 2021
Commented: Divyesh pandav
on 7 Oct 2021
a = regexprep(' "C:\Users\User's PC\Desktop\note.txt" ' , ' " ' , ' ' );
a = regexprep(' "C:\Users\User's PC\Desktop\note.txt" ' , ' " ' , '');
0 Comments
Accepted Answer
Walter Roberson
on 7 Oct 2021
a = regexprep(' "C:\Users\User''s PC\Desktop\note.txt" ' , '"' , '''''' )
More Answers (0)
See Also
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!