Answer the question
In order to leave comments, you need to log in
What does the expression /some/ mean in JS?
I saw this in code examples for Node using the Telegram Bot API. The search is complicated by special characters, search engines do not understand, and I don’t know the specific name.
Example:
bot.onText(/echo (.+)/, (msg, match) => {
bot.sendMessage(msg.chat.id, match[1]);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question