How can I conditionally parse logs with regeX to assign “codes” to events? | Hacker News Reader