help centerhelp center
erase http and https urls from text
newstr = eraseurls(str)
example
newstr = eraseurls(str) erases http and https urls from the elements of str.
newstr
str
erase the url from the text in str.
str = "for more information, see https://www.mathworks.com"; newstr = eraseurls(str)
newstr = "for more information, see "
input text, specified as a string array, character vector, or cell array of character vectors.
example: ["an example of a short sentence."; "a second short sentence."]
["an example of a short sentence."; "a second short sentence."]
data types: string | char | cell
string
char
cell
output text, returned as a string array, character vector, or cell array of character vectors. str and newstr have the same data type.
introduced in r2017b
| | erasepunctuation | | | tokenizeddocument
erasepunctuation
tokenizeddocument
您曾对此示例进行过修改。是否要打开带有您的编辑的示例?
您点击的链接对应于以下 matlab 命令:
请在 matlab 命令行窗口中直接输入以执行命令。web 浏览器不支持 matlab 命令。
select a web site
choose a web site to get translated content where available and see local events and offers. based on your location, we recommend that you select: .
you can also select a web site from the following list:
select the china site (in chinese or english) for best site performance. other mathworks country sites are not optimized for visits from your location.