You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, it matches`match:8`, from`subject:-18`. To exclude it, we need to ensure that the regexp starts matching a number not from the middle of another (non-matching) number.
15
+
Як ви бачите, шаблон знаходить`match:8`, у`subject:-18`. Щоб виключит і його, нам необхідно переконатись, що регулярний вираз починає пошук не з середини іншого не піходящого числа.
17
16
18
-
We can do it by specifying another negative lookbehind: `pattern:(?<!-)(?<!\d)\d+`. Now`pattern:(?<!\d)`ensures that a match does not start after another digit, just what we need.
17
+
Ми можемо це реалізувати вказавши додатковий вираз для негативного перегляду назад: `pattern:(?<!-)(?<!\d)\d+`. Зараз`pattern:(?<!\d)`перевіряє, щоб пошук не починався одразу після іншого числа, як нам і було потрібно.
19
18
20
-
We can also join them into a single lookbehind here:
0 commit comments