File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1106,7 +1106,7 @@ For character classes, this means that:
1106
1106
1107
1107
= item C < [abc[:upper:]] > becomes C « <[abc]+:Upper> »
1108
1108
1109
- For look-around assertions:
1109
+ For lookaround assertions:
1110
1110
1111
1111
= item C < (?=[abc]) > becomes C « <?[abc]> »
1112
1112
Original file line number Diff line number Diff line change @@ -571,8 +571,8 @@ This can be useful for augmenting an existing regex. For example if you have
571
571
a regex C < quoted > that matches a quoted string, then C < / <quoted> && <-[x]>* / >
572
572
matches a quoted string that does not contain the character C < x > .
573
573
574
- Note that you cannot easily obtain the same behavior with a look-ahead , that
575
- is, a regex doesn't consume characters, because a look-ahead doesn't stop
574
+ Note that you cannot easily obtain the same behavior with a lookahead , that
575
+ is, a regex doesn't consume characters, because a lookahead doesn't stop
576
576
looking when the quoted string stops matching.
577
577
578
578
= begin code
@@ -772,7 +772,7 @@ match with
772
772
say "foobar" ~~ rx{ foo <!before bar> } # OUTPUT: «Nil»
773
773
774
774
775
- Look-around assertions can be used also with other patterns, like
775
+ lookahead assertions can be used also with other patterns, like
776
776
characters ranges, interpolated variables, subscripts and so on. In such
777
777
cases it does suffice to use a C < ? > (or a C < ! > for the negate form) immeditely
778
778
followed by the character classes, interpolated variable and more in general
You can’t perform that action at this time.
0 commit comments