diff options
author | Karl Williamson <khw@khw-desktop.(none)> | 2010-02-25 19:17:57 -0700 |
---|---|---|
committer | Jesse Vincent <jesse@bestpractical.com> | 2010-02-28 10:15:21 -1000 |
commit | f9e949fde3ede2344392f8b4159fabb7744bbffb (patch) | |
tree | cc05567edc62812e40fac45576dc16fde6456814 /pod | |
parent | a620a577415c09bac17531268ef8710e0e2519a3 (diff) | |
download | perl-f9e949fde3ede2344392f8b4159fabb7744bbffb.tar.gz |
Revise wording about /x caveats
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlre.pod | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod index 7417b35a7f..c675186703 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -99,11 +99,13 @@ a C<\Q...\E> stays unaffected by C</x>. And note that C</x> doesn't affect whether space interpretation within a single multi-character construct. For example in C<\x{...}>, regardless of the C</x> modifier, there can be no spaces. Same for a L<quantifier|Quantifiers> such as C<{3}> or -C<{5,}>. Similarly, C<(?:...)> can't have a space between the C<?> and C<:>. -Within any delimiters for such a construct, allowed spaces are not affected by -C</x>, and depend on the construct. For example, C<\x{...}> can't have spaces -because hexadecimal numbers don't have spaces in them. But, in C<\p{...}> the -C<...> can have spaces that follow the Unicode properties rules. +C<{5,}>. Similarly, C<(?:...)> can't have a space between the C<?> and C<:>, +but can between the C<(> and C<?>. Within any delimiters for such a +construct, allowed spaces are not affected by C</x>, and depend on the +construct. For example, C<\x{...}> can't have spaces because hexadecimal +numbers don't have spaces in them. But, Unicode properties can have spaces, so +in C<\p{...}> there can be spaces that follow the Unicode rules, for which see +L<perluniprops.pod/Properties accessible through \p{} and \P{}>. X</x> =head2 Regular Expressions |