<< text_striphtml text_analytics text_stripurl >>

text_analytics >> text_analytics > text_stripnumber

text_stripnumber

Strip all numbers and replace with the given rep_str.

Syntax

out_str = text_stripnumber(in_str [,rep_str]);

Parameters

in_str :

Input string

rep_str :

Replacement string

out_str :

Output string

Description

Look for one or more characters between 0-9 tag it with another common name, by default, "number".

Examples

in_str = 'The postal code for our office is 47100';
out_str = text_stripnumber(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_striphtml text_analytics text_stripurl >>