How to compare text file with ignoring numbers at the beginning of the lines?

How to compare text file with ignoring numbers at the beginning of the lines?

1
NewbieNewbie
1

    9:11 - Sep 05#1

    Hello together!

    Is it possible to ignore some characters in lines, for example like with regular expression N[0-9]* ?

    Example:

    in first file:

    Code: Select all

    ...
    N0010 X10 Y87 Z100
    N0020 G1 X50 F150
    N0030 Y50
    ...
    The coordinates are the same in second file , but the line numbers are different. But the line numbers should not be relevant for the comparison.

    Code: Select all

    ...
    N0020 X10 Y87 Z100
    N0030 G1 X50 F150
    N0040 Y50
    ...
    The line numbers can be grow up to the length of 5 or 6 digits.

    6,686585
    Grand MasterGrand Master
    6,686585

      7:36 - Sep 06#2

      Yes, such a comparison is possible with UltraCompare Professional, but not with UC Lite. Click in UltraCompare Prof. after having already opened a text comparison window in menu Session on menu item Session properties… on using the toolbar/menu mode or on second ribbon tab Home in the second group Current Session on the first item Set compare options on using the ribbon mode. Select next the second tab Ignore options in the opened dialog window.

      There are two possibilities for ignoring the character N with the following number:
      1. Check the ignore option Ignore column and enter in the field below: 1-6
      2. Below the ignore option Ignore rules click on button Add, select list item all text between and enter in the the two edit fields right to this list option N in first edit field and a space character in the second edit field and click on button OK.
      Next click on the button OK and Run.

      The second possibility with the ignore rule can result in false positives in case of the character N exists in the compared files also somewhere else than at the beginning of the lines. There is unfortunately no placeholder for beginning of a line which would be useful for this specific text file comparison. There is just the placeholder $ for end of the line. Regular expressions cannot be used for rules although $ is the common placeholder for at end of line also in UltraEdit/Unix/Perl regular expressions.

      You could send a feature request email to support of UltraEdit, Inc. for an enhancement to define an ignore rule with ^N (Unix/Perl regular expression syntax) or %N (UltraEdit regular expression syntax) and a space character in a future version of UltraCompare Professional for ignoring all text between N at the beginning of a line and the next space character in the line.
      Best regards from an UC/UE/UES for Windows user from Austria