A little obfuscated, but I kind of like this method:
my %t = reverse ($value =~ /(\d+)([dh])/g); my $day = $t{d} || 0; my $hour = $t{h} || 0;
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: Help with a more precise regex
by jasonk
in thread Help with a more precise regex
by LogicalChaos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |