Ignore Trailing characters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alexander
    New User
    • Oct 2008
    • 1

    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!
  • Ernie
    Fanatic
    • Mar 2004
    • 137

    #2
    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).

    Comment

    Working...