File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,7 @@ to match a colon), or included in quotes:
55
55
56
56
/ 'two words' / # matches 'two words' including the blank
57
57
/ "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
64
59
65
60
Strings are searched left to right for the regex, thus it is sufficient if a
66
61
substring matches the regex:
@@ -74,8 +69,8 @@ substring matches the regex:
74
69
};
75
70
76
71
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 > .
79
74
80
75
= head1 Wildcards and character classes
81
76
You can’t perform that action at this time.
0 commit comments