- Notifications
You must be signed in to change notification settings - Fork179
Capturing groups#441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Capturing groups#441
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Дякую за переклад і ваш внесок! Я додав кілька коментарів до тексту, з вашого боку нічого більше не треба, я сам внесу необхідні зміни
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
9-regular-expressions/11-regexp-groups/02-find-webcolor-3-or-6/solution.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
9-regular-expressions/11-regexp-groups/02-find-webcolor-3-or-6/solution.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
```js run | ||
let str = "GogogoJohn!"; | ||
let str = "GogogoІван!"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
let str = "GogogoІван!"; | |
let str = "GogogoJohn!"; |
alert( result[0] ); // Gogogo John (full match) | ||
alert( result[1] ); // John | ||
alert( result.length ); // 2 (no more items in the array) | ||
alert( result[0] ); // Gogogo Іван (повний збіг) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
alert( result[0] ); // GogogoІван (повний збіг) | |
alert( result[0] ); // GogogoJohn (повний збіг) |
alert( result[1] ); // John | ||
alert( result.length ); // 2 (no more items in the array) | ||
alert( result[0] ); // Gogogo Іван (повний збіг) | ||
alert( result[1] ); // Іван |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
alert( result[1] ); //Іван | |
alert( result[1] ); //John |
alert( result.length ); // 2 (no more items in the array) | ||
alert( result[0] ); // GogogoІван (повний збіг) | ||
alert( result[1] ); //Іван | ||
alert( result.length ); // 2 (інших елементів у масиві нема) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
alert( result.length ); // 2 (інших елементів у масивінема) | |
alert( result.length ); // 2 (інших елементів у масивінемає) |
- The method `str.match` returns capturing groups only without flag `pattern:g`. | ||
- The method `str.matchAll` always returns capturing groups. | ||
- Метод `str.match` повертає групи захоплення лише без прапору `pattern:g`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
- Метод`str.match` повертає групи захоплення лише безпрапору`pattern:g`. | |
- Метод`str.match` повертає групи захоплення лише безпрапорцю`pattern:g`. |
Please make the requested changes. After it, add a comment "/done". |
@all-contributors add@SamGreenberg for translation |
@stas-dolgachov @SamGreenberg already contributed before to translation |
Thank you 💖 I updated the Progress Issue#1 🎉 🎉 🎉 |
No description provided.