E
E
egorlisss2019-05-26 04:39:01
JavaScript
egorlisss, 2019-05-26 04:39:01

How to use multiple regular expressions?

Using: But I want to use multiple regular expressions for commands.
vk.updates.hear(/^\/help$/i, async (message) => {

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladlen Hellsite, 2019-05-26
@egorlisss

Modify Regular Expression
Or use multiple

vk.updates.hear([/^\/help$/i, /^\/commands?$/i], async (message) => {

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question