I need a specific text selection command

This command works, but if there is a - sign between the added messages, the system will crash immediately. Is there another way?
output = @got

Hi @Panupol_Sonnuam, can you share some more details on what exactly crashes the system for you? Perhaps provide an example workflow?

I tried running the below workflow on n8n 0.215.2 bit it didn’t crash for me.

Alternatively and assuming the string you want to extract always starts with a @ you could try using an expression like @{{ $json.summary.split("@")[1] }} instead.

I went this
teacher_simp1 = Pun
teacher_simp2 = Pun Quest

The first one is correct but the second one I want also to have a “quest” message.
Pictured is an example list.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.