Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2008
    Posts
    2

    Default Difficulty getting Session Settings | Replacements working

    Hi,

    I'm having difficulty getting regular expressions to work in the replacement options in session settings for a text file comparison.

    I have no problem when when it is static text, so for example anywhere "John Doe" appears in the left file, then ignore "Bill Smith" in the right, seems to work fine.

    However, if I wanted to say anywhere "John Doe", "Jim Doe", "Jenny Doe" appears then ignore "Bill Smith", "Ben Smith", "Bob Smith", then I can try regular expression "J\w* Doe" in the left and "B\w* Smith" in the right, but this doesn't work. Am I misunderstanding something?

    Thanks

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,953

    Default

    Unfortunately, Text Replacements do not allow the regular expression matching on the right/destination side. Text Replacements can define the equal text, but different text must be explicitly stated. For example: John* = Ben*, John* = Bob*, and John* = Bill*.

    If you are looking to ignore the name itself, you can define it as Unimportant Text. Then, however it appears, it can be considered Unimportant. If it is aligned to another name, and both are unimportant, then the difference can be ignored. If it aligns to an Important difference, then that difference will still be shown in the interface.

    http://www.scootersoftware.com/suppo..._unimportantv3

    How does this work for you?
    Aaron P Scooter Software

  3. #3
    Join Date
    Apr 2008
    Posts
    2

    Default

    This works fine for what I need.

    Thanks Aaron.

Tags for this Thread

Posting Permissions

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