Strip all dollar sign and replace with the given rep_str.
out_str = text_stripnumber(in_str [,rep_str]);
Input string
Replacement string
Output string
Look for one or more dollar sign and tag it with another common name, by default, "dollar".
in_str = 'This item cost $100'; out_str = text_stripdollar(in_str); disp(out_str); | ![]() | ![]() |
Andrew Ng, Machine Learning Online Course, Week 6 notes and assignment: https://www.coursera.org/learn/machine-learning