look for files without a - after the first space

General discussion related to "Everything".
Post Reply
tordenflesk
Posts: 6
Joined: Fri May 22, 2020 8:57 pm

look for files without a - after the first space

Post by tordenflesk »

How do I look for files without a - after the first space in the file name?
froggie
Posts: 303
Joined: Wed Jun 12, 2013 10:43 pm

Re: look for files without a - after the first space

Post by froggie »

Code: Select all

regex:"^[^ ]* [^-]"
assuming just a single space

Sorry, posted wrong version. Revised. Re-revised.
Last edited by froggie on Sat May 23, 2020 11:58 pm, edited 2 times in total.
tordenflesk
Posts: 6
Joined: Fri May 22, 2020 8:57 pm

Re: look for files without a - after the first space

Post by tordenflesk »

Doesn't seem to work as I wanted it to.
https://i.imgur.com/ZRt0qRr.png
Maybe I should try to be a little more specific:
I'm trying to locate audio files that don't have " - " after the first word/number.
RegexNinja
Posts: 18
Joined: Sat Apr 11, 2020 2:45 pm

Re: look for files without a - after the first space

Post by RegexNinja »

Hi, here's a stricter version that wont rely on filenames having only 1-space
regex:"^[^ ]* [^-]"
Post Reply