How to ignore line numbers in text files

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

How to ignore line numbers in text files

Post 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+
Last edited by psguru on Sun May 16, 2004 2:58 pm, edited 1 time in total.
psguru
PrestoSoft
Marco Nef
Junior Member
Posts: 14
Joined: Sat May 15, 2004 4:55 pm
Location: Zürich, Switzerland
Contact:

Post by Marco Nef »

Could you give me the pattern for "ignore leading tabs and spaces"?

Thanks
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post 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.
psguru
PrestoSoft
Post Reply