find strings between using regexp
9 views (last 30 days)
Show older comments
I want to find all string inside of [ ], for example, I expect to get three results '1ac', 'd2' and 'k3' for following string
'[1ac][d2][k3]'
However, when I use
regexp('[1ac][d2][k3]','(?<=\[).+(?=\])','match')
I will get '1ac][d2][k3'.
How can I get three results '1ac', 'd2' and 'k3' instead?
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Whos in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!