Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2008
    Posts
    1

    Default Ignore Trailing characters

    I'm comparing 2 files.
    I'm trying to get to important differences.
    The unimportant differences is that one of the file has trailing characters.

    Blah#Blah#blah#################

    vs.

    Blah#Blah#blah

    is ok. Is there any way to ignore the trailing characters? Help! Thanks!

  2. #2
    Join Date
    Mar 2004
    Location
    Austin,TX
    Posts
    137

    Default

    This is probably not the case, but if the trailing characters are always constant, you could use a regular expression to ignore the trailing characters.

    Edit the grammar/rules for the file type, select the Importance Tab, click Edit Grammar, click New. Provide a name for the Element name, select Basic, enter something like "\#+$" (without quotes), click on Regular Expression. Save and get back to the original Importance tab. Be sure the check box next to your newly created element is not check to indicate it is not important to comparison.

    If you have a set of trailing characters, you could use something like "[\#abc]+$", assuming you can have trailing "#", "a", "b", "c" (or whatever characters can occur).

Posting Permissions

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