Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2017
    Posts
    1

    Default Need help with Alignment Overrides regex

    Greetings,

    I have 2 folders that contain the same files but in one folder the file name has been appended with the file timestamp. For example, original file:
    002.JPG

    And the renamed file:
    002.JPG-20130520-151500.jpg

    I want to compare the files in these 2 folders to verify that they are similar indeed but I am not sure how to apply the correct regex. I successfully tested the alignment feature manually with rules like:

    002.JPG-20130520-151500.jpg=002.JPG

    But the list contains around a 1000 files so can't manually align all of them.


    Thanks!

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,899

    Default

    Hello,

    Is the timestamp static or changing for every file on the left side?

    For our Alignment Override, you'll need to Swap Sides so the longer names are on the left. You can then replace using the Session menu -> Session Settings, Misc tab, Alignment Override:
    (.*)\.JPG-.*
    =
    $1.jpg
    Aaron P Scooter Software

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •