diff options
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r-- | pod/perlre.pod | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod index ce054ec448..12f9f51016 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -19,6 +19,9 @@ the regular expression inside. These are: Do case-insensitive pattern matching. +If C<use locale> is in effect, the case map is taken from the current +locale. See L<perllocale>. + =item m Treat string as multiple lines. That is, change "^" and "$" from matching @@ -136,6 +139,9 @@ also work: \E end case modification (think vi) \Q quote regexp metacharacters till \E +If C<use locale> is in effect, the case map used by C<\l>, C<\L>, C<\u> +and <\U> is taken from the current locale. See L<perllocale>. + In addition, Perl defines the following: \w Match a "word" character (alphanumeric plus "_") @@ -146,9 +152,11 @@ In addition, Perl defines the following: \D Match a non-digit character Note that C<\w> matches a single alphanumeric character, not a whole -word. To match a word you'd need to say C<\w+>. You may use C<\w>, -C<\W>, C<\s>, C<\S>, C<\d>, and C<\D> within character classes (though not -as either end of a range). +word. To match a word you'd need to say C<\w+>. If C<use locale> is in +effect, the list of alphabetic characters generated by C<\w> is taken +from the current locale. See L<perllocale>. You may use C<\w>, C<\W>, +C<\s>, C<\S>, C<\d>, and C<\D> within character classes (though not as +either end of a range). Perl defines the following zero-width assertions: |