How to find files that match a wildcard string in Java?

前端 未结 16 1247
慢半拍i
慢半拍i 2020-11-22 10:52

This should be really simple. If I have a String like this:

../Test?/sample*.txt

then what is a generally-accepted way to get a list of fil

16条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 11:11

    Might not help you right now, but JDK 7 is intended to have glob and regex file name matching as part of "More NIO Features".

提交回复
热议问题