<< text_stripnumber text_analytics text_tokenize >>

text_analytics >> text_analytics > text_stripurl

text_stripurl

Strip all urls and replace with the given rep_str.

Syntax

out_str = text_stripurl(in_str [,rep_str]);

Parameters

in_str :

Input string

rep_str :

Replacement string

out_str :

Output string

Description

Look for strings starting with http:// or https:// and replace it with another common name, by default, "httpaddr".

Examples

in_str = 'Our website address is https://www.bytecode-asia.com/';
out_str = text_stripurl(in_str);
disp(out_str);

See also

Authors

Bibliography

Andrew Ng, Machine Learning Online Course, Week 6 notes and assignment: https://www.coursera.org/learn/machine-learning


Report an issue
<< text_stripnumber text_analytics text_tokenize >>