Find duplicate files with different names (but same Suffix)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Peter10
    Visitor
    • Aug 2014
    • 4

    Find duplicate files with different names (but same Suffix)

    Example Files are :

    2018_03_11_14_12_42.pdf

    and file

    2017-12-31 CUA - 2018_03_11_14_12_42.pdf


    The Regex ( in Session Settings , Misc ) I was trying to use is
    $1.pdf=\1.pdf

    Any suggestions why this does not make the differently named files align .....?
  • Aaron
    Team Scooter
    • Oct 2007
    • 16000

    #2
    Hello,

    The longer path will need to be on the Left side, as the Alignment Overrides only support RegEx on the left, with matching ($1) references on the right.

    So a literal replacement would be:
    2017-12-31 CUA - (2018_03_11_14_12_42.txt)
    with
    $1

    Or you can replace parts of the Left with RegEx that also match on those sequences of the file name, like:
    .* - (.*)
    with
    $1
    (where the extra whitespace around - helps it match on only the middle - separator you have, assuming that pattern only occurs once).
    Aaron P Scooter Software

    Comment

    Working...