in reply to Regex and leading zeros in numbers

You did not tell us what the files look like. Anyway:

You can compare numbers numerically with the == operator, so you do not need to care about leading zeros.