How to find text structure within string array?
Show older comments
Hello,
please see below an example of file names I have:
"moose_0_-1_6_Coordinates-8580_138864_ 30-01-21_17-48-22_0.xml"
I've made in bold the required text (which is the date of file creation).
File names can vary a little a bit, but the bold structure would always exist.
Can I search somehow for a specific template/structure within my string?
Something like: ##-##-##_##-##-## (when # <--> digit).
Thank You !
Accepted Answer
More Answers (1)
Image Analyst
on 15 Aug 2022
0 votes
Try digitsPattern
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!