http://qs1969.pair.com?node_id=504038


in reply to Re^2: Regex, capturing variables vs. speed
in thread Regex, capturing variables vs. speed

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