remove substring from string
15 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I want to remove a substring from an nx1 string, if I use the erase function, A = erase(Str, 'dog'). it works, however this is case sensitive and I would also like to remove all other case variations of 'dog' such as 'DOG', 'Dog', 'dOg' etc. if I use the functions upper(dog) it completely ignores the string 'Dog' and only removes 'DOG'. .
Is there a way to use the fuction while avoiding case sensitivity?
0 comentarios
Respuestas (1)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!