How to find specific text in a string?
이전 댓글 표시
Hello,
I have the following text:
"abs(3).def(5).hhh(11)"
Is there an easy way for search for all the locations with "(" - number - ")".
I mean, all the places where there is a number between parenthesis.
I've try to use regexp but it was too complicate for me to understand how exactly it should be written.
Thanks.
댓글 수: 1
Fangjun Jiang
2022년 4월 4일
regular expression makes you relax :)
채택된 답변
추가 답변 (1개)
Fangjun Jiang
2022년 4월 4일
0 개 추천
a="abs(3).def(5).hhh(11)";
regexp(a,'(\d+)')
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!