diff options
author | Karl Williamson <khw@khw-desktop.(none)> | 2010-05-05 12:09:47 -0600 |
---|---|---|
committer | Jesse Vincent <jesse@bestpractical.com> | 2010-05-08 16:37:55 -0400 |
commit | f822d0dde66fdda982c2d08cb08ce96a22c7dea0 (patch) | |
tree | cef2284bdd2db9bb867ad2dbcdf8fc209a266cd6 /pod | |
parent | f793d64a11adf5c01cf295fa0327b259f3a765ff (diff) | |
download | perl-f822d0dde66fdda982c2d08cb08ce96a22c7dea0.tar.gz |
perlrebackslash: fix for 80 col display
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlrebackslash.pod | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pod/perlrebackslash.pod b/pod/perlrebackslash.pod index 461ebd984f..6587ea97d6 100644 --- a/pod/perlrebackslash.pod +++ b/pod/perlrebackslash.pod @@ -75,7 +75,7 @@ as C<Not in [].> \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: heI<x>adecimal. $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: eI<X>tended 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. |