Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2011
    Posts
    1

    Default Regular expression help - ignore suffix

    Hi everyone:

    I've been using BC3 for about a month to compare roughly 500,000 images. This software is amazing!

    I've hit upon a comparison I'm trying to figure out, that will require using some regular expressions, but I'm not terribly good at hitting on the right one yet. Hopefully some kind soul will be able to guide me in the right direction

    I have a directory containing a bunch of potential duplicates with the suffix "_1" or " (2)". (I've moved the problem children into their own directory for comparison):

    1925-001.tif=1925-001_1.tif
    1900_100.tif=1900_100_1.tif
    1928_36.16.5.tif=1928_36.16.5 (2).tif
    1935_025 .tif=1935_025 _1.tif (yeah, some of them have spaces in the filename)

    Any ideas as to how I should set up the expression to ignore the suffix and just compare the string prior to it?

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    12,000

    Default

    Hello,

    Do you have BC3 Pro? If so, you can use our Pro feature Alignment Overrides to create a rule, such as:
    *.tif = *_1.tif
    Which would then align your files as you expect. Please note that the alignment is direcitonal, so you need to pick Left = Right or Right = Left correctly.

    The Alignment Overrides can be declared in the Folder Compare's Session menu -> Session Settings, Misc tab. If you currently have Std edition registered, you can trial Pro again by following these instructions:
    http://www.scootersoftware.com/suppo...?zz=kb_evalpro
    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
  •