Skip to content

Commit 01f598f

Browse files
committed
Regexes: remove outdated special case \#
also be a bit more specific in links
1 parent 56c1912 commit 01f598f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

lib/Language/regexes.pod

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,7 @@ to match a colon), or included in quotes:
5555
5656
/ 'two words' / # matches 'two words' including the blank
5757
/ "a:b" / # matches 'a:b' including the colon
58-
59-
The hash character C<#> cannot be escaped with a backslash, because that
60-
collides with the I<unspace> syntax. So to match a hash character, you need
61-
to quote it:
62-
63-
/'#'/ # hashes must be quoted, cannot be escaped
58+
/ '#' / # matches a hash character
6459
6560
Strings are searched left to right for the regex, thus it is sufficient if a
6661
substring matches the regex:
@@ -74,8 +69,8 @@ substring matches the regex:
7469
};
7570
7671
Match results are stored in the C<$/> variable and are also returned from
77-
the match. The result is of type L<Match> if the match was successful;
78-
otherwise it is L<Nil>.
72+
the match. The result is of L<type Match|/type/Match> if the match was successful;
73+
otherwise it is L<Nil|/type/Nil>.
7974
8075
=head1 Wildcards and character classes
8176

0 commit comments

Comments
 (0)