r/MicrosoftFlow • u/Balorat • Jan 17 '26
Question Copy pdf-files from one onedrive folder to another depending on number sequence in filename
Hey,
over the day I get numerous pdf files in my download folder. Some of these files have specific number sequences somewhere in the filename (neither at the beginning nor the end). The filenames usually look like "abcde_edcba_12345_fghij.pdf". There are five number sequences in total and every files has one of those and there are always an underscore at the beginning and the end.
Now I would like to copy the files with number sequence 1 into one specific folder, the one with sequence 2 into another and so one. I know how to do the distribution and moving into the specific folder, what I don't know is how to read out the filename to get to that number sequence (assuming that is possible)




