Page 1 of 1

How to ignore line numbers in text files

Posted: Sun May 16, 2004 2:08 pm
by psguru
Often files contain line numbers that have to be ignored during comparison. For example, a file may have lines like these:

01 BEGIN PGM
02 LX0 Y0 Z100
03 M3

while what needs to compared is:

BEGIN PGM
LX0 Y0 Z100
M3

ExamDiff Pro allows to ignore such numbers: go to Options | Compare | "Ignore parts of each line", and set "Part matching regular expression" to

^\d+

Posted: Sun May 16, 2004 2:09 pm
by Marco Nef
Could you give me the pattern for "ignore leading tabs and spaces"?

Thanks

Posted: Sun May 16, 2004 2:09 pm
by psguru
There's already an option "Leading white space in lines" under Options | Compare | Ignore that takes care of this, so you really don't need to use a regex.