Doubt related to how to remove only part of the text after my tags p:
and r:
I'm developing an application similar to chatbot simsimi and for testing purposes I'm storing the questions and answers in a var within the script. In order for the bot to learn new questions and answers, I'm trying to create a command where the user would send the question and answer using the p:
and r:
tags as in the example below:
Example :
var text = "p: pergunta r: resposta"
For this I would only have to get the content inside my tags but I do not know how to do it. I've seen% I've even tried but I do not know how to limit what it takes until the beginning of the next tag.