can we filter the files from the object [folder] by prefix of the file name?

Oct 30, 2009 at 4:50pm

can we filter the files from the object [folder] by prefix of the file name?

dear users,

we know that we can filter the types of files from the object [folder] by using messages: types TEXT etc.
I want to know if we filter the files of a folder by the prefix of the file name.
E.g. I want to collect only the files prefixed by fx. into a umenu.
Thus, only two files from the four files listed below should be added in the umenu:

main.maxpat
fx.delay.maxpat
fx.buffer.maxpat
dummy,maxpat

best,
prko

#46221
Oct 30, 2009 at 8:45pm

You will want to use regexp for something like this. Here is a rough example:

– Pasted Max Patch, click to expand. –
#166450
Oct 30, 2009 at 8:45pm

I have found a solution:

– Pasted Max Patch, click to expand. –
#166451
Oct 30, 2009 at 8:46pm

Thanks for your solution!

#166452

You must be logged in to reply to this topic.