Announcement

Collapse
No announcement yet.

Grammer pattern matching.

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

  • Grammer pattern matching.

    Hi,
    I am using the grammer and importance functions to compare two similar files.
    I am partly successful in that, but I have a hitch.

    I want to match the following words in two separate files

    AUSM_NOCALL_CHECK_UTL_DTL -- In File 1
    ATTHS_NOCALL_CHECK_UTL_DTL -- In File 2 -- This is Unimportant difference.

    AUSM_NOCALL_CHECK_UTL_DTL -- In File 1
    ATTHS_NOCALL_CHECK_MODE -- In File 2 -- This is Important difference.

    The First letters of the word are unimportant, the later letters are important.

    I tried using a grammar setting as Text in List AUSM_, ATTHS_, etc but it does not match the above words.

    I also tried a grammar setting as AUSM_\w*, ATTHS_\w*, etc but it matches both examples above and both are set as unimportant.

    Please help as there are 5-6 files each 500 lines long.

  • #2
    Hello,

    Your first strategy, of using the List grammar type, should work. I suspect you may have had a small syntax error in your element definition. The list should be carriage return delimited, so each word is on its own line:
    ASUM_
    ATTHS_

    with none of the other options (such as Match on whole word) enabled.

    Once defined, an element must also be marked as Unimportant in the Session Settings, Importance tab, by unchecking the element name. This can also be configured by default on the Home screen, in the Saved Sessions list, in the Edit session defaults folder, Text Compare's Importance tab.

    We have a KB article and video with more detailed instructions, here:
    http://www.scootersoftware.com/suppo..._unimportantv3

    Please let us know if you have any questions.
    Aaron P Scooter Software

    Comment

    Working...
    X