Sometimes I will be faced with catastrophic backtracking when I'm writing regex pattern. For example, in this content, as you see pattern below matches one thing as well:
/Jakob Finch/
But pattern below throws catastrophic backtracking error:
/style.*?Jakob Finch/
Why? And how can I fix it?