Page 1 of 1

Duplicate Selection/Mark by text pattern

Posted: Tue Jun 20, 2017 5:08 pm
by RangerGord
I have mp3 files that start with the track # e.g. “02-songname…”.
I have duplicates that instead of the dash there is a blank space e.g. “02 songname…”.
I want to mark the duplicates of the latter type, i.e. the ones with spaces instead of the dash.
I think there is a method called the text pattern. I find it confusing and not sure how it works.
Any suggestions? Help appreciated.

Re: Duplicate Selection/Mark by text pattern

Posted: Tue Jun 20, 2017 5:53 pm
by therube
Selection Assistant -> Select by text pattern
- Use Regular Expressions

Code: Select all

^\d\d\s
Says to find names that start with two digits followed by a space (followed by anything).

Code: Select all

02    songname.txt
02 songname.txt
02-songname.txt
So it should find:

Code: Select all

02    songname.txt
02 songname.txt

Check your results.


If you only wanted files with a single space after the digits, you could use something like this:

Code: Select all

^\d\d\s{1}\S

Re: Duplicate Selection/Mark by text pattern

Posted: Wed Jun 21, 2017 1:46 pm
by RangerGord
Perfect! That worked.
Thanks mucho