Ignoring underscores and spaces in filenames

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RA_Nic
    New User
    • Nov 2011
    • 2

    Ignoring underscores and spaces in filenames

    Hiya, I am new to beyond compare and am trying to compare the different files in two folders. However when the comparison runs I want it to ignore the spaces and underscores in the file names and folder names.
    For example when comparing two folders one has a document in it called Plan_1 and the other folder has the document as Plan 1 is there anyway to stop these showing as orphans and actually get them to compare?

    Thanks!
  • Aaron
    Team Scooter
    • Oct 2007
    • 15941

    #2
    Hello,

    Our BC3 Pro feature Alignment Overrides (in the Folder Compare Session Settings, Misc tab) can define rules that will align differently named folders or files with each other, but you would need to define a rule, such as
    "* *" = "*_*" to match on files that have a single space to _ conversion.

    The Trial of BC3 can run in either Pro or Std mode (toggle in the Help menu -> About dialog).

    If you are currently registered for Std, you can trial Pro by following this guide, to see if the feature works well for you before purchase:
    http://www.scootersoftware.com/suppo...?zz=kb_evalpro
    Aaron P Scooter Software

    Comment

    • thomas708
      Visitor
      • Nov 2011
      • 3

      #3
      My apology. I found out each filter has to be on a separate line. I lumped them together in a single line which is why it didn't work.

      Comment

      • RA_Nic
        New User
        • Nov 2011
        • 2

        #4
        Thanks Aaron for that reply that worked perfectly!

        I am just interested is there way to say ignore all spaces and underscores in a file name? For example two files called;

        "This_is_test_plan_1" and "This is test plan 1"

        I only have a few files like this so have manually compared them at present but am just wondering for future knowledge.

        Thanks

        Comment

        • Aaron
          Team Scooter
          • Oct 2007
          • 15941

          #5
          Hello,

          Not generally, but if you define a few alignment overrides, such as:
          *_* = * *
          *_*_* = * * *
          *_*_*_*=* * * *
          Then each covers the number of potential word breaks.
          Aaron P Scooter Software

          Comment

          • GregoryM
            New User
            • Dec 2016
            • 1

            #6
            Originally posted by Aaron
            Hello,

            Not generally, but if you define a few alignment overrides, such as:
            *_* = * *
            *_*_* = * * *
            *_*_*_*=* * * *
            Then each covers the number of potential word breaks.
            Is there a BC4 regular expression version of this answer?

            Comment

            • Aaron
              Team Scooter
              • Oct 2007
              • 15941

              #7
              Our Alignment Overrides feature of BC4 Pro is much the same as BC3. The same style and limitation of RegEx is present, so this workaround is still needed.
              Aaron P Scooter Software

              Comment

              Working...