Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Nov 2008
    Posts
    9

    Default override file alignment in folder comparison (BC3)

    I am trying to override file alignment in folder comparison

    On the left I have a file named: vb0001_csh.sav

    On the right, I have a file named: BuildTest-vb0001-std-csh.bnd

    I added an alignment override to the Session Settings / Misc:

    Left: vb\d\d\d\d_csh\.sav
    Right: BuildTest-vb\d\d\d\d-std-csh\.bnd
    Regular Expression = checked

  2. #2
    Join Date
    Oct 2007
    Location
    Hannover, Germany
    Posts
    356

    Default

    Give this a try:

    Left: vb(\d\d\d\d)_csh(\.)sav
    Right: BuildTest-vb$1-std-csh$2bnd

    Regular expressions have to be grouped on the left side and referenced on the right side.
    Quote Originally Posted by Chris View Post
    Chris, thanks for the suggestion.

    In the current version, you can align file extensions using a regular expression alignment.

    Select Session|Session Settings and go to the Misc tab.
    Click New.
    Check "Regular Expression".
    For the left file, enter "(.*).JPG".
    For the right fine, enter "$1.BMP".

    The parenthesis save a match that can be accessed in the variable $1 in the replacement.

  3. #3
    Join Date
    Nov 2008
    Posts
    9

    Default

    That helps. I ended up with the following...

    left: vb(\d\d\d\d)_csh\.sav
    right: BuildTest-vb$1-std-csh.bnd

    Thanks!

  4. #4
    Join Date
    Jan 2008
    Location
    Alabama
    Posts
    42

    Default

    I would really like to see the "Folder Compare Miscellaneous Settings" page of the help file updated with Lutz's note, and several examples.

  5. #5
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    4,646

    Default

    Maurice,

    Thanks for the suggestion. We'll work on improving the documentation.
    Chris K Scooter Software

  6. #6
    Join Date
    Apr 2008
    Posts
    2,157

    Default

    Quote Originally Posted by Chris View Post
    We'll work on improving the documentation.
    Three years later... any progress? None seen in 13298 Help.

  7. #7
    Join Date
    Apr 2011
    Posts
    1

    Red face Alignment with unpredictable part in filename

    I am trying to override file alignment in folder comparison

    On the left I have files named:
    1Y_ANO_2011-04-08Z.xml
    7Y_ANO_2011-04-08Z.xml
    ...

    On the right, I have files named:
    1Y_ANO_2011-02-30Z.xml
    7Y_ANO_2011-02-22Z.xml
    ...

    I want to match the files starting with 1Y and also the ones with 7Y...
    I added an alignment override to the Session Settings / Misc:

    Left: (.*)_ANO_(\d\d\d\d\D\d\d\D\d\d)Z\.xml
    Right: $1_ANO_(.*)Z.xml
    Regular Expression = checked

    This is not working. Any ideas?

  8. #8
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    4,646

    Default

    The right side only supports exact matches, so you can only use references like $1, $2, etc and characters on the right. You can't use wildcards like .* for the right side.

    It looks like the left in your example always has the same date value, so it might work better to swap the left and right side folders. Once swapped, use the following regular expressions:

    Left: (\d+)Y_ANO.*
    Right: $1Y_ANO_2011-04-08Z.xml
    Chris K Scooter Software

  9. #9
    Join Date
    Nov 2007
    Location
    Scarborough
    Posts
    15

    Default

    Any chance the ability to regex match on the right will be added? When comparing the contents of a zip file full of plugins, I'd love to have things like plugins/org.apache.ant_1.9.2.v201404171502.jar match up to plugins/org.apache.ant_1.9.4.v201410062020.jar automatically, since one is the newer version of the same file. I can open a feature request for this if it's not on the roadmap for future releases yet.

    I can do
    Code:
    (.+)_([\d.-]+).jar
    on the left side, but would have to set up a few hundred unique right side entries for all the plugins, rather than just setting something like this for the right side:

    Code:
    $1_.+.jar
    Could that be supported?

  10. #10
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,676

    Default

    Hello,

    Thanks for the feedback. Adding RegEx into the match side is not a quick feature we can add, but enhancing our support to aligning file names like your example is on our wishlist.
    Aaron P Scooter Software

Posting Permissions

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