"At first blush," it seems to me that you were hoping that the semantics of the
ls command would somehow work here.
Nope. Sorry.
When you're contemplating
any situation where (you know...) "a regular expression will
really help me here," bear in mind that there are
two things which regex-based logic fundamentally needs to know:
- "What place-markers will tell me that 'I am in the right neighborhood(s)?'"
- (Then... "now that I'm here...") "What will identify 'what I need to isolate?, perchance to change?'"