Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
balphi
· 2y ago · 0 comments
How are you using regex to end the while loop? Are you detecting a specific substring or is it something more complex?
Comments
[–]
hugodutka
2y ago
It detects if a message contains the ”Final Answer” substring preceded by a specific emoji. The emoji is there to make the substring relatively unique.