javascript.info

Если флага g нет, то regexp.exec(str) ищет и возвращает первое совпадение, является полным аналогом вызова str.match(reg) . ... var str = 'Многое по JavaScript можно найти на ...

  learn.javascript.ru

  learn.javascript.ru

I'm trying to do something similar with stack overflow's rich text editor. Given this text: … I want to loop each [string][int] that is found which I do this way: This works great, it alerts 'ok' for each [string][int].

  stackoverflow.com

21 янв 2017 ... Метод exec() выполняет поиск сопоставления регулярного выражения в указанной ... var matches = /(привет \S+)/.exec('Это привет миру!

  developer.mozilla.org

When I run … I get … but I thought it should return … because there are 3 as in the string, not 2! Why is that? I want to be able to search for all occurances of a string in RegEx and iterate over them.

  stackoverflow.com

I need some clarification for match Vs exec in JavaScript; here some one says that "exec with a global regular expression is meant to be used in a loop" but first of all as you see in my example this is not...

  stackoverflow.com

I am new to regular expressions. I'm trying to parse the following kind of string: [key:"val" key2:"val2"] where there are arbitrary key:"val" pairs inside. I want to grab the key name and the value.

  stackoverflow.com

7 дек 2018 ... g); //raw array with translations var match = ""; //\u0621-\u064A ... You can see in the code, that I used search , match , exec , but all of this works ...

  stackoverflow.com

В JavaScript регулярные выражения являются также объектами. Эти патэрны используются с методами exec и test объекта RegExp и с методами match, ...

  pyramidin.narod.ru

Регулярные выражения в javascript имеют особую краткую форму и стандартный ... Кроме того, у строк есть свои методы search,match,replace, но чтобы их ..... нет флага g , то возвращает тот же результат, что regexp. exec(string) .

  javascript.ru

Заметим, что метод String#match выдаёт скобочные группы только при поиске без ... g и со скобочными группами, используется метод RegExp#exec: .

  learn.javascript.ru

  developer.mozilla.org

Вы можете использовать только чистый JavaScript: function ..... +)/g; var match ; params = {}; if (query) { while (match = regex.exec(query)) { params[match[1]] ...

  qaru.site

Конструктор RegExp создаёт объект регулярного выражения для ... строка\n ?/y; var match = regex.exec(text); console.log(match[1]); // напечатает 'Первая' ...

  developer.mozilla.org

  www.w3schools.com

I am trying to implement the following regex search found on golfscript syntax page. … Input is only ever the first match of the regexp. for example: "hello" "world" should return ["hello"...

  stackoverflow.com

10 май 2009 ... Вы можете вызвать exec при неявном определении объекта RegExp: var matches = /(hello \S+)/.exec('This is a hello world!

  javascript.ru

5 июн 2018 ... Регулярные выражения JavaScript: Поверх основ. by Monty Shokeen 5 ... var match = re.exec(textString); .... We ate apples all day. Everyone ...

  code.tutsplus.com

  w3cgeek.com

Page generated - 0.0247049332 (911d8a9dcde744014e81bcd6e229a1d6)