Regular Expressions using regexp
Show older comments
I have a cell array of strings a = {'-2.4,-3';'2,3';'0,5';'-4,-2.5';'A';'V';'C'}
Now I want to list those strings which have a "comma".
Accepted Answer
More Answers (1)
Walter Roberson
on 13 Oct 2013
regexp(a, '.*,.*', 'match')
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!