X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlrebackslash.pod;h=6587ea97d6e9d51c0d20849110d764acec00db10;hb=000c65fce914409ad42f49763dbced48187b5baf;hp=461ebd984f1a56e102d3d1700df9ddedd2f7d246;hpb=4948b50f6c618b295b44b4f36de1f0f157db591b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlrebackslash.pod b/pod/perlrebackslash.pod index 461ebd9..6587ea9 100644 --- a/pod/perlrebackslash.pod +++ b/pod/perlrebackslash.pod @@ -75,7 +75,7 @@ as C \e Escape character. \E Turn off \Q, \L and \U processing. Not in []. \f Form feed. - \g{}, \g1 Named, absolute or relative backreference. Not in []. + \g{}, \g1 Named, absolute or relative backreference. Not in [] \G Pos assertion. Not in []. \h Character class for horizontal whitespace. \H Character class for non horizontal whitespace. @@ -222,7 +222,7 @@ as a character without special meaning by the regex engine, and will match $str = "Perl"; $str =~ /\120/; # Match, "\120" is "P". - $str =~ /\120+/; # Match, "\120" is "P", it is repeated at least once. + $str =~ /\120+/; # Match, "\120" is "P", it is repeated at least once $str =~ /P\053/; # No match, "\053" is "+" and taken literally. =head4 Caveat @@ -276,7 +276,7 @@ Mnemonic: heIadecimal. $str = "Perl"; $str =~ /\x50/; # Match, "\x50" is "P". - $str =~ /\x50+/; # Match, "\x50" is "P", it is repeated at least once. + $str =~ /\x50+/; # Match, "\x50" is "P", it is repeated at least once $str =~ /P\x2B/; # No match, "\x2B" is "+" and taken literally. /\x{2603}\x{2602}/ # Snowman with an umbrella. @@ -571,7 +571,7 @@ Mnemonic: eItended Unicode character. "\x{256}" =~ /^\C\C$/; # Match as chr (256) takes 2 octets in UTF-8. - $str =~ s/foo\Kbar/baz/g; # Change any 'bar' following a 'foo' to 'baz'. + $str =~ s/foo\Kbar/baz/g; # Change any 'bar' following a 'foo' to 'baz' $str =~ s/(.)\K\1//g; # Delete duplicated characters. "\n" =~ /^\R$/; # Match, \n is a generic newline.