Announcement

Collapse
No announcement yet.

Filename Filter Failed: a RegEx (Regular Expressions) problem?

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

  • B2C
    replied
    Originally posted by Aaron View Post
    Hello B2C,

    I'm testing out your zip example but it seems to align fine using the Alignment Override:
    * = *.zip
    and then creating the Folder on the Left does not cause the panes to scroll, it makes the folder and aligns it to the paired zip file.

    Are you using the latest release of BC3 (currently 3.2.4)?
    Could you post a screenshot showing your folder comparison displaying the error message? Which Alignment Override did you define?

    Sorry if it made things confusing that I posted all the issues in one thread.

    v3.2.4



    1.
    My question for help on Alignment Override was here:
    http://www.scootersoftware.com/vbull...28884#poststop
    And this once I thought was solved here:
    http://www.scootersoftware.com/vbull...04&postcount=5
    Your "*=*.zip" can not cover the items that contains spaces. But it hinted me that regular expressions were not necessary. Now I simplified my Alignment Overrides this way:
    *=*.zip
    * *=**.zip
    * * *=***.zip
    * * * *=****.zip
    Thank you.



    2.
    The error message.
    I'm sure it's caused by this option:
    Archive handling (ex. zip files):
    * As folders once opened
    So it seems the message is unavoidable?



    3.
    Scroll.
    Align a pair MANUALLY. You'll see the scroll. And the focus will go to the first line.

    Leave a comment:


  • Aaron
    replied
    That Align With refreshes the display? That's actually a known issue. Sorry for not directly commenting on it, I followed the link to an old forum post that was resolved and missed that he was referencing a new/different issue.

    I'll add your comments to the entry.

    Leave a comment:


  • Michael Bulgrien
    replied
    Aaron,

    Nobody from Team Scooter has acknowledged or addressed the other issue raised by BC2 on 10 March 2011 and confirmed by me on 11 March 2011. Would you put a tracker on it please.

    Leave a comment:


  • Aaron
    replied
    Hello B2C,

    I'm testing out your zip example but it seems to align fine using the Alignment Override:
    * = *.zip
    and then creating the Folder on the Left does not cause the panes to scroll, it makes the folder and aligns it to the paired zip file.

    Are you using the latest release of BC3 (currently 3.2.4)?
    Could you post a screenshot showing your folder comparison displaying the error message? Which Alignment Override did you define?

    Leave a comment:


  • B2C
    replied
    For example, Alignment override:
    X=X.zip

    X.zip on the right side exists.
    Create the folder X (or rename a folder to X) on the left.
    This pair would be aligned immediately. But there will be a message in the Log:
    Unable to compare ...\X: Path is not a valid file.
    Unless the list is fully refreshed.
    Can't this message be avoided?

    Leave a comment:


  • Michael Bulgrien
    replied
    I agree that a newly aligned pair of files should remain visible on the screen keeping the current focus. I also confirm that this does not occur when aligning two files after scrolling down to a lower part of the directory.

    Leave a comment:


  • B2C
    replied
    The current expanded/collapsed state of every folder should also be maintained.

    Leave a comment:


  • B2C
    replied
    Align/AlignWith also has this problem:
    http://www.scootersoftware.com/vbull...94&postcount=1

    I hope the current position will be kept and the newly aligned pair will be focused.

    Leave a comment:


  • B2C
    replied
    Thanks for the hint. I changed things this way:
    Swapped the sides.
    Added such Alignment overrides:
    (?i).+=$0.zip
    (?i)(.+?) (.+)=$1$2.zip
    (?i)(.+?) (.+?) (.+)=$1$2$3.zip
    (?i)(.+?) (.+?) (.+?) (.+)=$1$2$3$4.zip
    (?i).+=$0.rar
    (?i)(.+?) (.+)=$1$2.rar
    (?i)(.+?) (.+?) (.+)=$1$2$3.rar
    (?i)(.+?) (.+?) (.+?) (.+)=$1$2$3$4.rar

    Please let me know if it still can be optimized.

    Leave a comment:


  • Michael Bulgrien
    replied
    Your replacement must result in an exact match of the text on the other side. Having extra spaces and changing character case complicates things significantly. There isn't any one regular expression that could successfully align all of your examples.

    Leave a comment:


  • B2C
    replied
    BTW, a suggestion:
    Enhance [Align] command to do [Toggle Align], or add a [Dismiss] command. So that we can dismiss an aligned pair (or even pairs) conveniently.

    Leave a comment:


  • B2C
    replied
    But there are spaces in the names of the right side. I'd rather not remove them.

    Leave a comment:


  • Aaron
    replied
    Originally posted by B2C View Post
    Hi,

    Folder Compare >> Session Settings >> Misc >> Alignment overrides

    Is it possible to align such a list by using Regular Expression?

    SomeFolder.rar <--> Some Folder
    myfolderx.zip <--> My Folder X
    Anothersample.zip <--> Another Sample
    ...

    I tried this but didn't work:
    (.+?)(.+?)?(.+?)?(.+?)?\.(zip|rar)=\1 ?\2? ?\3? ?\4?
    Hello,

    How does this work for you?:
    Left = (.*)\.(zip|rar)
    Right = $1

    Leave a comment:


  • B2C
    replied
    Hi,

    Folder Compare >> Session Settings >> Misc >> Alignment overrides

    Is it possible to align such a list by using Regular Expression?

    SomeFolder.rar <--> Some Folder
    myfolderx.zip <--> My Folder X
    Anothersample.zip <--> Another Sample
    ...

    I tried this but didn't work:
    (.+?)(.+?)?(.+?)?(.+?)?\.(zip|rar)=\1 ?\2? ?\3? ?\4?

    Leave a comment:


  • Aaron
    replied
    Hello,

    Thanks for the suggestions. We do use Regular Expressions heavily in our program, such as defining Grammar elements or the Find dialog. Our File Name Filters are not actually based on Regular Expressions, but are more closely linked to DOS Masking. Specifically, it uses a Unix filename wildcards, glob: http://en.wikipedia.org/wiki/Glob_(programming)

    As a side note: Adding additional support for Regular Expressions to the Filters is on our wishlist.

    I hope there was not too much confusion in dealing with these different systems. You can definitely apply this RegEx knowledge to the other areas of our application that support it (which will have a "Regular Expression" checkbox option below the text box to enable it.)

    If you ever have any questions about what is supported, please let us know via forum, email or phone call. You can also click the context sensitive help '?' button next to the 'X' close button; this will always take you to the Help article directly related to the dialog you are looking at.

    Leave a comment:

Working...
X