Answer the question
In order to leave comments, you need to log in
How can I make a regular expression remember an optional match?
'a https://vk.com a'.match(/(http(s)?:\/\/.)?vk\.com/g) // нашел vk.com, а я хочу чтобы https тоже нашел
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