Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 354c633

Browse files
authored
Merge pull request #2445 from msisaifu/fix-typo
fix typo
2 parents 0c4913c + 0f65c39 commit 354c633

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎9-regular-expressions/14-regexp-lookahead-lookbehind/1-find-non-negative-integers/solution.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
The regexp for an integer number is `pattern:\d+`.
33

4-
We can exclude negatives by prepending it with the negative lookahead: `pattern:(?<!-)\d+`.
4+
We can exclude negatives by prepending it with the negative lookbehind: `pattern:(?<!-)\d+`.
55

66
Although, if we try it now, we may notice one more "extra" result:
77

‎9-regular-expressions/14-regexp-lookahead-lookbehind/article.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Lookahead and lookbehind
22

3-
Sometimes we need to find only those matches for a pattern that are followed or preceeded by another pattern.
3+
Sometimes we need to find only those matches for a pattern that are followed or preceded by another pattern.
44

55
There's a special syntax for that, called "lookahead" and "lookbehind", together referred to as "lookaround".
66

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /