Need help with Alignment Overrides regex

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Eugene S
    New User
    • Aug 2017
    • 1

    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!
  • Aaron
    Team Scooter
    • Oct 2007
    • 16007

    #2
    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

    Comment

    Working...