Announcement

Collapse
No announcement yet.

Comparing a Folder to itself with Custom File Alignment

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

  • Comparing a Folder to itself with Custom File Alignment

    I have a folder (e.g. C:\test) with files names like this:

    abc.sav
    abc.bnd
    def.sav
    def.bnd

    I want to compare abc.sav files to abc.bnd and def.sav to def.bnd.

    I setup a folder comparison with the C:\test on both the left and right side.

    I set a custom alignment rule

    Regex
    Left = (.*)\.sav
    Right = $1.bnd

    However it is not aligning the .sav to the .bnd.

    Please advise.

    Thanks

  • #2
    Why use a regular expression?
    Simply align *.sav with *.bnd
    BC v4.0.7 build 19761
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

    Comment


    • #3
      You should use a non-greedy regular expression: (but I think it is a bug in the RE processing: in this case, there is no reason to use non-greedy RE)

      Left = (.*?)\.sav
      Right = $1.bnd

      But use Michael's solution which is more simple
      Last edited by mdes; 19-Mar-2009, 09:09 AM.
      Michel Dessaintes
      Modérateur du Forum Francophone & Traducteur Officiel de BC2/BC3/BC4 en Français

      Comment

      Working...
      X