Regular expression in Python Shutil integer range to move files
问题 I have a folder with 12500 pictures. The filenames contain the numbers, so it looks like: 0.jpg 1.jpg 2.jpg 3.jpg . . .12499.jpg Now I want to move the files. Files with range 0-7999 should be copied to the first folder. Files 8000-9999 should be copied to the second folder and files with range 10000-12499 should be copied to the third folder. First, I thought I could easily use [0-7999].jpg for the first folder, [8000-9999].jpg for the second and [10000-12499].jpg for the third. However,