Regexp Find Digit between two hyphens
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mark Krzysztopik
am 23 Okt. 2019
Beantwortet: Walter Roberson
am 23 Okt. 2019
I have a str that looks like this:
str = '7-6-1'
and I would like to return 6.
I was able to return 7 using ^[^-]*[^ -] but can't seem to find the expression to return the second item.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!