How can I compare two strings, ignoring any white space or punctuation characters?
Show older comments
I would like to compare two strings. The strings may have varying numbers of spaces and punctuation characters (not necessarily at the beginning or end of the string), which I would like to ignore.
Accepted Answer
More Answers (0)
Categories
Find more on Characters and Strings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!