logoalt Hacker News

noosphrtoday at 11:09 AM4 repliesview on HN

The issue isn't that regex are a solution to find a substring. The issue is that you shouldn't be looking for substrings in the first place.

This has buttbuttin energy. Welcome to the 80s I guess.


Replies

lou1306today at 4:20 PM

> The issue is that you shouldn't be looking for substrings in the first place.

Why? They clearly just want to log conversations that are likely to display extreme user frustration with minimal overhead. They could do a full-blown NLP-driven sentiment analysis on every prompt but I reckon it would not be as cost-effective as this.

rdiddlytoday at 2:44 PM

Clbuttic!

8cvor6j844qw_d6today at 11:37 AM

Very likely vibe coded.

I've seen Claude Code went with a regex approach for a similar sentiment-related task.

show 1 reply