Methods of RegExp and String by SamGreenberg · Pull Request #445 · javascript-tutorial/uk.javascript.info

````warn header="Same global regexp tested repeatedly on different sources may fail"
If we apply the same global regexp to different inputs, it may lead to wrong result, because `regexp.test` call advances `regexp.lastIndex` property, so the search in another string may start from non-zero position.
````warn header="Один і той самий глобальний регулярний вираз, протестований багато разів на різних даних, може помилятись"
Якщо ми застосуємо один і той самий глобальний регулярний вираз до різних вхідних даних, можемо отримати неправильні результати, бо виклик `regexp.test` посуває властивість `regexp.lastIndex`, тож пошук в іншому рядку може початись з позиції, відмінною від нуля.