I have a list of filenames. I want to collect filenames that are exactly one of these three patterns:
foo.extfoo-*.extfoo.*.extfoo is a variable, * can be anything, ext is a file extension.
How would I do that using regex?
Thanks.
I have a list of filenames. I want to collect filenames that are exactly one of these three patterns:
foo.extfoo-*.extfoo.*.extfoo is a variable, * can be anything, ext is a file extension.
How would I do that using regex?
Thanks.