Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2016
    Posts
    1

    Default Ignore line containing _

    I am trying to do a text compare and have lines containing "_OBJECT_" ignored.

    Example lines from same file:
    File 1-> "P46_OBJECT_0:"
    File 2-> "P13_OBJECT_0:"

    File 1-> "√P46_OBJECT_0. = {Starting Point}"
    File 2-> "√P13_OBJECT_0. = {Starting Point}"

    File 1-> "√Next. = {P46_OBJECT_1:,forward}"
    File 2-> "√Next. = {P13_OBJECT_1:,forward}"

    I have tried adding varation of OBJECT with and without the _ to the importance tab grammar elements and have not yet figured out how to ignore the above lines.

    What would I need to do to ignore the above lines where the number is the only difference?

    There are other lines in this file what contain the number difference but I do not want those differences to be ignored.

    Thank you.

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

    Default

    Hello,

    You would need to create a Regular Expression that matches on the entire line, not just the word "object", otherwise the grammar only makes "object" unimportant.

    For a full instruction list of how to create a grammar and mark it as Unimportant (rather than Important), see here:
    http://www.scootersoftware.com/suppo..._unimportantv3

    Your regular expression could be something similar to
    .*_OBJECT_.*
    Aaron P Scooter Software

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
  •