Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Maybe it's not much extra workload, but ()$ requires you to pattern-match all bracketed content in a string as a possible capture, and the parser can't determine whether it's a capture or not until the $ or a matching close bracket.

You don't have to: you can also just parse the string backwards.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: