note
robin
Even faster is to use a single match, but to be explicit about what you're looking for, i.e.
<code>
'Better' => sub {
$line =~
/(chr\S*).*?urn:lsid:(\S*).*?panel:([^:]*)/i
}
</code>
It's always better to write <tt>(\S*)\s</tt> than <tt>(.*?)\s</tt>, because you're making it clear to the matching engine exactly what you're looking for (non-space characters in this case).
503915
504016