Загрузка...

Is there any Javascript function which does regex match from specified index - Stack Overflow

Yes, you can make exec start at a particular index if the regex has the g global modifier.

var regex=/\s*(\w+)/g; // give it the "g" modifier

regex.lastIndex = 3; // set the .lastIndex property to the starting

#would #code #wrote #your #while(match

https://stackoverflow.com/questions/12354171/is-there-any-javascript-function-which-does-regex-match-from-specified-index https://stackoverflow.com/questions/12354171/is-there-any-javascript-function-which-does-regex-match-from-specified-index

Видео Is there any Javascript function which does regex match from specified index - Stack Overflow канала ResponseXAI
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять