B
Brian Parker
I have an ArrayList ( strings ) of filenames like such:
fred.out
inctructions.txt
luncheon01.jpg
luncheon02.jpg
luncheon05.jpg
luncheon11.jpg
HeebieJeebie.cs
...etc..
The user will provide a filename mask such as:
*.*
*.jpg
luncheon0?.*
...etc..
Is there a simple way to do a comparison of the user-defined filename
masks -vs- a string? I need to return a list of the strings that
matched their filename mask.
The users will not know how to create RegEx expressions, only typical
filename masks.
At worst, I think I can convert their mask to a RegEx and match/test on
that, but was hoping there was an easier way.
-BEP
fred.out
inctructions.txt
luncheon01.jpg
luncheon02.jpg
luncheon05.jpg
luncheon11.jpg
HeebieJeebie.cs
...etc..
The user will provide a filename mask such as:
*.*
*.jpg
luncheon0?.*
...etc..
Is there a simple way to do a comparison of the user-defined filename
masks -vs- a string? I need to return a list of the strings that
matched their filename mask.
The users will not know how to create RegEx expressions, only typical
filename masks.
At worst, I think I can convert their mask to a RegEx and match/test on
that, but was hoping there was an easier way.
-BEP