It's a matter of personal preference -- just don't neglect the check! Note also that the regex may run faster without the .* at the start (backtracking can be expensive).my $quote = ""; if ($source =~ /last: ([0-9.]+)/i;) { $quote = $1; } else { # do the Not Found Dance }
In reply to RE: RE: Re: URL's
by chromatic
in thread URL's
by nascent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |