How to glob only files without an extension?
glob, python
Solution
Another possibility:
glob("filename_???")
Problem
I have files like the following: ``` filename_000 filename_000.sh filename_000.e filename_000.o ``` Is there a way I can specify a regex inside the glob function? Something like this: ``` from glob import glob for file in glob("filename_[0-9]{1,3}$"): ... ``` Any suggestions?