How to match a number between two characters?
6 次查看(过去 30 天)
显示 更早的评论
Hi,
Here is an example from a string: [180] Windabweichung
How can i extract the 180 ?
Thanks.
0 个评论
采纳的回答
Matt J
2019-11-11
>> str=extractBetween("[180] Windabweichung","[","]")
str =
"180"
2 个评论
Matt J
2019-11-11
Dario's comment moved here:
Thanks Matt J,
it works perfect, but in the case for a table of strings as an input.
How can i get another table with extracted values from the input table?
Input=
and output with the same size but with returned numbers.
Thanks
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!