Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin
Dear Claude: Please don't use regex to parse code (mbmccoy.dev)
3 points by _alternator_ 15 days ago | hide | past | favorite | 2 comments


Given how LLM-based "AI" works, if Claude tends to write regex based code parsers that means that a large majority of (human written) code out there is of limited capability or buggy or just plain wrong.

This also gives a mechanism for how vibe coding could introduce really inexplicable app behavior - regexes that work correctly a lot of the time but not always. Looking forward to it!


You can use Language Server Protocol (LSP) in Claude Code; no more regexes [1].

[1]: https://code.claude.com/docs/en/discover-plugins




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

Search: