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

Nice approach.

Replies are listed 'Best First'.
Re^3: regex pattern match
by hdb (Monsignor) on Mar 29, 2013 at 10:20 UTC

    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.