diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-04-24 09:55:35 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-05-18 11:15:08 -0600 |
commit | 1433f837774373f0266fa20e948a1e9c133ec1e5 (patch) | |
tree | 1ef831a4a1f91ae5ebc5634991c15818b910a8b4 /pod | |
parent | fc28d2a3deb79307692e487a927fb5494e7de9a9 (diff) | |
download | perl-1433f837774373f0266fa20e948a1e9c133ec1e5.tar.gz |
perlrecharclass: Move text about \N
This should come right after the text about '.', as they are related.
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlrecharclass.pod | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/pod/perlrecharclass.pod b/pod/perlrecharclass.pod index a8a9452a32..5723a7ab9b 100644 --- a/pod/perlrecharclass.pod +++ b/pod/perlrecharclass.pod @@ -72,6 +72,20 @@ character classes, see L<perlrebackslash>.) \pP, \p{Prop} Match a character that has the given Unicode property. \PP, \P{Prop} Match a character that doesn't have the Unicode property +=head3 \N + +C<\N> is new in 5.12, and is experimental. It, like the dot, matches any +character that is not a newline. The difference is that C<\N> is not influenced +by the I<single line> regular expression modifier (see L</The dot> above). Note +that the form C<\N{...}> may mean something completely different. When the +C<{...}> is a L<quantifier|perlre/Quantifiers>, it means to match a non-newline +character that many times. For example, C<\N{3}> means to match 3 +non-newlines; C<\N{5,}> means to match 5 or more non-newlines. But if C<{...}> +is not a legal quantifier, it is presumed to be a named character. See +L<charnames> for those. For example, none of C<\N{COLON}>, C<\N{4F}>, and +C<\N{F4}> contain legal quantifiers, so Perl will try to find characters whose +names are respectively C<COLON>, C<4F>, and C<F4>. + =head3 Digits C<\d> matches a single character considered to be a decimal I<digit>. @@ -303,20 +317,6 @@ L<the beginning of this section|/Whitespace>. =back -=head3 \N - -C<\N> is new in 5.12, and is experimental. It, like the dot, matches any -character that is not a newline. The difference is that C<\N> is not influenced -by the I<single line> regular expression modifier (see L</The dot> above). Note -that the form C<\N{...}> may mean something completely different. When the -C<{...}> is a L<quantifier|perlre/Quantifiers>, it means to match a non-newline -character that many times. For example, C<\N{3}> means to match 3 -non-newlines; C<\N{5,}> means to match 5 or more non-newlines. But if C<{...}> -is not a legal quantifier, it is presumed to be a named character. See -L<charnames> for those. For example, none of C<\N{COLON}>, C<\N{4F}>, and -C<\N{F4}> contain legal quantifiers, so Perl will try to find characters whose -names are respectively C<COLON>, C<4F>, and C<F4>. - =head3 Unicode Properties C<\pP> and C<\p{Prop}> are character classes to match characters that fit given |