tilly wrote a very good article about how you can have this type of regex terminate before the heat death of the universe by using backtracking and how it results in a relative slow down of other regular expressions:
Benchmarks aren't everything
----------
"Write a wise saying and your name will live forever." - Anonymous