Using a wildcard while needing to escape space?

General discussion related to "Everything".
Post Reply
Tatrii
Posts: 2
Joined: Wed Sep 09, 2020 10:24 pm

Using a wildcard while needing to escape space?

Post by Tatrii »

Ableton Live creates files for things like consolidating or reversing an audio file.

Example:
"song.mp3" Would become: "song R.mp3" after it was reversed in the program. If the same sample/song is used in another project it appends like this." R-1" " R-2" " R-3"

Code: Select all

"c:\users\example u\music\" .aif | .wav | .mp3 !acapella !freeze !stems !" R.wav" !" R-1.wav" !" R.aif" !" R-1.aif" !"c:\users\help me\music\acapella"
Anybody have any tips on how I could solve this problem without having to keep adding extra exclusions? I tried to do a wildcard but that space being there messed it up!
void
Developer
Posts: 16755
Joined: Fri Oct 16, 2009 11:31 pm

Re: Using a wildcard while needing to escape space?

Post by void »

Regex would catch all these types of files, please try the following search:
"c:\users\example u\music\" ext:aif;wav;mp3 !acapella !freeze !stems !regex:" r(-\d+)?\.(wav|aif)$" !"c:\users\help me\music\acapella"

regex breakdown:
(-\d+)? Optionally match a literal - followed by 1 or more digits (0-9)
\. Match a literal .
(wav|aif) Match wav OR aif
$ Match the end of the filename.

Wildcards would match letters and digits, so it might end up matching filenames you don't not want:
"c:\users\example u\music\" ext:aif;wav;mp3 !acapella !freeze !stems !" R.wav" !" R.aif" !"* R-*.wav" !"* R-*.aif" !"c:\users\help me\music\acapella"

The whole filename is matched when using wildcards.
* matches any character, any number of times.
Tatrii
Posts: 2
Joined: Wed Sep 09, 2020 10:24 pm

Re: Using a wildcard while needing to escape space?

Post by Tatrii »

‎‎‎‎SUCCESS :D
Image
‎‎‎‎SUCCESS :D

I've been using everything for years and have just recently been discovering how powerful it truly is! So "ext:aif;wav;mp3"... for years I've been just typing .mp3 .wav etc. :shock:

That regex breakdown is brilliant! I never could quite grasp it and you just made it all click in my head :lol:.
Seriously, thank you so much for not only solving this particular problem but teaching me something too. For years I was not giving files meaningful names or organizing them correctly. I swear everything has at least saved me a few hundred hours of searching through multiple drives.

David, truly a Class act! :D
Post Reply