Lookahead and lookbehind#439
Merged
dolgachio merged 11 commits intojavascript-tutorial:masterfrom Mar 12, 2023
Merged
Conversation
dolgachio
requested changes
Mar 12, 2023
Collaborator
dolgachio
left a comment
There was a problem hiding this comment.
Дякую, за ваш внесок! Вибачаюсь, що так довго перевіряв.
Я сам внесу всі необхідні зміни і прийму ваш пулл реквест
9-regular-expressions/14-regexp-lookahead-lookbehind/1-find-non-negative-integers/solution.md
Outdated
Show resolved
Hide resolved
9-regular-expressions/14-regexp-lookahead-lookbehind/1-find-non-negative-integers/solution.md
Outdated
Show resolved
Hide resolved
9-regular-expressions/14-regexp-lookahead-lookbehind/1-find-non-negative-integers/solution.md
Outdated
Show resolved
Hide resolved
9-regular-expressions/14-regexp-lookahead-lookbehind/1-find-non-negative-integers/solution.md
Outdated
Show resolved
Hide resolved
9-regular-expressions/14-regexp-lookahead-lookbehind/1-find-non-negative-integers/task.md
Outdated
Show resolved
Hide resolved
| Пам'ятайте, `str.match` (без флажку `pattern:g`) і `str.matchAll` (всі) повертає співпадіння у вигляді масиву з властивістю `індекс`, тож ми точно знаємо де саме в тексті вони знаходяться і можемо перевірити контекст. | ||
|
|
||
| But generally lookaround is more convenient. | ||
| Але загалом перегляд уперед і назад більш підходящі. |
Collaborator
There was a problem hiding this comment.
Suggested change
| Але загалом перегляд уперед і назад більш підходящі. | |
| Але загалом перевірка уперед і назад більш підходящі. |
| | `X(?!Y)` | Negative lookahead | `pattern:X` if not followed by `pattern:Y` | | ||
| | `(?<=Y)X` | Positive lookbehind | `pattern:X` if after `pattern:Y` | | ||
| | `(?<!Y)X` | Negative lookbehind | `pattern:X` if not after `pattern:Y` | | ||
| | `X(?=Y)` | Позитивний перегляд уперед | `pattern:X` якщо за ним йде `pattern:Y` | |
Collaborator
There was a problem hiding this comment.
Suggested change
| | `X(?=Y)` | Позитивний перегляд уперед | `pattern:X` якщо за ним йде `pattern:Y` | | |
| | `X(?=Y)` | Позитивна перевірка уперед | `pattern:X` якщо за ним йде `pattern:Y` | |
| | `(?<=Y)X` | Positive lookbehind | `pattern:X` if after `pattern:Y` | | ||
| | `(?<!Y)X` | Negative lookbehind | `pattern:X` if not after `pattern:Y` | | ||
| | `X(?=Y)` | Позитивний перегляд уперед | `pattern:X` якщо за ним йде `pattern:Y` | | ||
| | `X(?!Y)` | Негативний перегляд уперед | `pattern:X` якщо за ним не йде `pattern:Y` | |
Collaborator
There was a problem hiding this comment.
Suggested change
| | `X(?!Y)` | Негативний перегляд уперед | `pattern:X` якщо за ним не йде `pattern:Y` | | |
| | `X(?!Y)` | Негативна перевірка уперед | `pattern:X` якщо за ним не йде `pattern:Y` | |
| | `(?<!Y)X` | Negative lookbehind | `pattern:X` if not after `pattern:Y` | | ||
| | `X(?=Y)` | Позитивний перегляд уперед | `pattern:X` якщо за ним йде `pattern:Y` | | ||
| | `X(?!Y)` | Негативний перегляд уперед | `pattern:X` якщо за ним не йде `pattern:Y` | | ||
| | `(?<=Y)X` | Позитивний перегляд назад | `pattern:X` якщо він йде після `pattern:Y` | |
Collaborator
There was a problem hiding this comment.
Suggested change
| | `(?<=Y)X` | Позитивний перегляд назад | `pattern:X` якщо він йде після `pattern:Y` | | |
| | `(?<=Y)X` | Позитивна перевірка назад | `pattern:X` якщо він йде після `pattern:Y` | |
| | `X(?=Y)` | Позитивний перегляд уперед | `pattern:X` якщо за ним йде `pattern:Y` | | ||
| | `X(?!Y)` | Негативний перегляд уперед | `pattern:X` якщо за ним не йде `pattern:Y` | | ||
| | `(?<=Y)X` | Позитивний перегляд назад | `pattern:X` якщо він йде після `pattern:Y` | | ||
| | `(?<!Y)X` | Негативний перегляд назад | `pattern:X` якщо тільки він не йде після `pattern:Y` | |
Collaborator
There was a problem hiding this comment.
Suggested change
| | `(?<!Y)X` | Негативний перегляд назад | `pattern:X` якщо тільки він не йде після `pattern:Y` | | |
| | `(?<!Y)X` | Негативна перевірка назад | `pattern:X` якщо тільки він не йде після `pattern:Y` | |
Contributor
|
Please make the requested changes. After it, add a comment "/done". |
dolgachio
approved these changes
Mar 12, 2023
Collaborator
|
@all-contributors add @MrsMelnychenko for translation |
Contributor
|
@stas-dolgachov @MrsMelnychenko already contributed before to translation |
Contributor
|
Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.