glob.glob() does not use regex. it uses Unix path expansion rules. How can I emulate this regex in glob:
".*.jpg|.*.png"
glob.glob() does not use regex. it uses Unix path expansion rules. How can I emulate this regex in glob:
".*.jpg|.*.png"
Well, with glob you should just do this:
lst = glob.glob('*.jpg') + glob.glob('*.png')