in reply to Re^2: regex pattern match
in thread regex pattern match

I do not like the line where I replace $first with spaces. It really should be:

$first =~ s/./ /g;

I love regular expressions! However, things can get easily out of hand and become unmaintainable. Also, these are quite format dependent. Should there be only one column, it would not work anymore.