Announcement

Collapse
No announcement yet.

override file alignment in folder comparison (BC3)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.
    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.

    Comment


    • #3
      That helps. I ended up with the following...

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

      Thanks!

      Comment


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

        Comment


        • #5
          Maurice,

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

          Comment


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

            Comment


            • #7
              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?

              Comment


              • #8
                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

                Comment


                • #9
                  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?

                  Comment


                  • #10
                    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

                    Comment


                    • #11
                      I'm not getting this ...

                      On left I have
                      Code:
                      IMG_1880 copy.jpg
                      IMG_1899 copy.jpg
                      IMG_1886 copy.jpg
                      IMG_1896 copy.jpg
                      IMG_8437 (3264 x 2448).jpg
                      IMG_8498 (3264 x 2448).jpg
                      IMG_1871 copy.jpg
                      IMG_1903 copy.jpg
                      IMG_1874 copy.jpg
                      IMG_8447 (3264 x 2448).jpg
                      DSC_1049 (4496 x 3000).jpg
                      On right

                      Code:
                      IMG_1880.jpg
                      IMG_1899.jpg
                      IMG_1886.jpg
                      IMG_1896.jpg
                      IMG_8437.jpg
                      IMG_8498.jpg
                      IMG_1871.jpg
                      IMG_1903.jpg
                      IMG_1874.jpg
                      IMG_8447.jpg
                      DSC_1049.jpg

                      I want to match the first 8 characters.

                      None of these work:
                      Code:
                      (........).*\.jpg=$1\.jpg
                      (.{8}).*\.jpg=$1\.jpg

                      Comment


                      • #12
                        Originally posted by chrisjj View Post
                        Originally posted by Chris View Post
                        We'll work on improving the documentation.
                        Three years later... any progress? None seen in 13298 Help.
                        Nine years later... any progress?

                        None seen in the Help of the current version 21095 http://i.imgur.com/RVZ9DxE.png .

                        Comment


                        • #13
                          I tried both and they work as expected.
                          Did you unintentionally uncheck the Regular expression checkbox or do you have another Alignment override which matches first?

                          Comment


                          • #14
                            Originally posted by Chris View Post
                            Maurice,

                            Thanks for the suggestion. We'll work on improving the documentation.
                            This quote was from 2008. How's it going in getting the documentation updated?

                            Comment


                            • #15
                              Very slowly, it seems. I found and bumped our tracker entry on the subject.

                              And, of course, if you have any questions or specific examples you need help with, please post or email us at support@scootersoftware.com
                              Aaron P Scooter Software

                              Comment

                              Working...
                              X