main content

erase http and https urls from text -凯发k8网页登录

erase http and https urls from text

description

example

newstr = eraseurls(str) erases http and https urls from the elements of str.

examples

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 arguments

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."]

data types: string | char | cell

output arguments

output text, returned as a string array, character vector, or cell array of character vectors. str and newstr have the same data type.

version history

introduced in r2017b

网站地图