From: Rafael Garcia-Suarez Date: Fri, 13 Jul 2007 15:03:45 +0000 (+0000) Subject: More typo fixes in the regexp docs X-Git-Tag: accepted/trunk/20130322.191538~14868 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2cb52ee1eadebb8ce6e30389dbc092e45144039;p=platform%2Fupstream%2Fperl.git More typo fixes in the regexp docs p4raw-id: //depot/perl@31612 --- diff --git a/pod/perlre.pod b/pod/perlre.pod index 56df3eb..ef2a66e 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -296,7 +296,7 @@ in general. X<\w> X<\W> X C<\R> will atomically match a linebreak, including the network line-ending -"\x0D\x0A". Specifically, X<\R> is exactly equivelent to +"\x0D\x0A". Specifically, X<\R> is exactly equivalent to (?>\x0D\x0A?|[\x0A-\x0C\x85\x{2028}\x{2029}]) diff --git a/pod/perlrebackslash.pod b/pod/perlrebackslash.pod index 71e7c06..e5f6ff5 100644 --- a/pod/perlrebackslash.pod +++ b/pod/perlrebackslash.pod @@ -37,7 +37,7 @@ future version of Perl may assign a special meaning to it. However, if you have warnings turned on, Perl will issue a warning if you use such a sequence. [1]. -It is however garanteed that backslash or escape sequences never have a +It is however guaranteed that backslash or escape sequences never have a punctuation character following the backslash, not now, and not in a future version of Perl 5. So it is safe to put a backslash in front of a non-word character. @@ -107,7 +107,7 @@ quoted constructs>. =head3 Fixed characters -A handful of characters have a dedidated I. The following +A handful of characters have a dedicated I. The following table shows them, along with their code points (in decimal and hex), their ASCII name, the control escape (see below) and a short description. @@ -261,7 +261,7 @@ functions C and C). To uppercase or lowercase several characters, one might want to use C<\L> or C<\U>, which will lowercase/uppercase all characters following -them, until either the end of the pattern, or the next occurance of +them, until either the end of the pattern, or the next occurrence of C<\E>, whatever comes first. They perform similar functionality as the functions C and C do. @@ -320,7 +320,7 @@ Mnemonic: I

roperty. If capturing parenthesis are used in a regular expression, we can refer to the part of the source string that was matched, and match exactly the same thing. (Full details are discussed in L). There are -three ways of refering to such I: absolutely, relatively, +three ways of referring to such I: absolutely, relatively, and by name. =head3 Absolute referencing @@ -339,12 +339,12 @@ as well. =head3 Relative referencing -New in perl 5.10 is different way of refering to capture buffers: C<\g>. +New in perl 5.10 is different way of referring to capture buffers: C<\g>. C<\g> takes a number as argument, with the number in curly braces (the braces are optional). If the number (N) does not have a sign, it's a reference to the Nth capture group (so C<\g{2}> is equivalent to C<\2> - except that C<\g> always refers to a capture group and will never be seen as an octal -escape). If the number is negative, the reference is relative, refering to +escape). If the number is negative, the reference is relative, referring to the Nth group before the C<\g{-N}>. The big advantage of C<\g{-N}> is that it makes it much easier to write