How to optimise regular expressions and avoid catastrophic backtracking | Hacker News Reader