in reply to Re: Should I use v5.10 because of named groups?
in thread Should I use v5.10 because of named groups?
I guess you're right, that regex isn't any more readable than the alternatives you propose. In fact, I've rewritten it to:
I maintained the regex as I'm fairly sure I'll need to improve it later for more checks on the input.if (/^([01]):([01]):([^:]+):([^:]+)$/) { my ($type, $valid, $name, $coment) = ($1, $2, $3, $4); ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Should I use v5.10 because of named groups?
by Marshall (Canon) on Apr 14, 2021 at 22:44 UTC |
In Section
Seekers of Perl Wisdom