Why Using .* in Regular Expressions Is Almost Never What You Actually Want
Basically the same advice, from the year 2000: <a href="http://www.perlmonks.org/?node_id=24640" rel="nofollow">http://www.perlmonks.org/?node_id=24640</a><p>There is one legitimate use case of .* though: advancing to the last match of something. If you want to find the last digit in a string, /.*(\d)/ will readily find it for you.