Remove some portion from a sentance...
2 次查看(过去 30 天)
显示 更早的评论
i want to remove ', and obtain the remaining expression...
write general code.... i want to obtain http://www1.interactivebrokers.ch/contract_info/index2.php?action=Details&site=GEN&conid=81578645
采纳的回答
Geoff Hayes
2014-7-22
Since the single quote appears at the end of the string, then just remove that last character
urlStr = 'http://www1.interactivebrokers.ch/contract_info/index2.php?action=Details&site=GEN&conid=81578645''';
urlStr = urlStr(1:end-1);
1 个评论
Joseph Cheng
2014-7-22
if there are additional erroneous ' in there you could do,
urlStr(strfind(urlStr,''''))=[];
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!