Remix.run Logo
noosphr 5 hours ago

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.

lou1306 19 minutes ago | parent | next [-]

> 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.

rdiddly 2 hours ago | parent | prev | next [-]

Clbuttic!

8cvor6j844qw_d6 5 hours ago | parent | prev | next [-]

Very likely vibe coded.

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

mr_00ff00 an hour ago | parent [-]

My understanding of vibe coding is when someone doesn’t look at the code and just uses prompts until the app “looks and acts” correct.

I doubt you are making regex and not looking at it, even if it was AI generated.

5 hours ago | parent | prev [-]
[deleted]