Skip to content

Commit f976bcc

Browse files
committed
Use ? instead of ?! for negated assertions, mdinger++
1 parent a186323 commit f976bcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Language/regexes.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,12 +956,12 @@ However, if you want to search for a pattern which is B<not> immediately
956956
followed by some pattern, then you need to use a negative lookahead
957957
assertion, this has the form:
958958
959-
<?!before pattern>
959+
<!before pattern>
960960
961961
Hence all occurrences of C<foo> which I<is not> before C<bar> would
962962
be matched by
963963
964-
rx{ foo <?!before bar> }
964+
rx{ foo <!before bar> }
965965
966966
=head2 Lookbehind assertions
967967

0 commit comments

Comments
 (0)