Re: Regular Expression Quick Reference

[email protected] ("Sean M. Burke")
Newsgroups perl.documentation
Message-ID <[email protected]>
At 06:53 PM 2003-07-27 +1000, you wrote:

>Hmm. No comments from anyone here?
>
>      http://dellah.org/perlreref.pod
>      http://dellah.org/perlreref.html

It all looks wonderful!
Except I'm a bit torn over this:
    \x7f     Any hexadecimal ASCII value
    \x{263a} A wide hexadecimal value
Isn't there no difference anymore between \xNN and \xNNNN except
that the first can express values only 0-0xFF?


>Should I just send to p5p instead of here?
Hm, maybe p5p is good for something.  I don't know.


Tiny fixes:

% diff perlreref.pod~orig perlreref.pod
--- perlreref.pod~orig  Sun Jul 27 06:11:16 2003
+++ perlreref.pod       Sun Jul 27 06:10:36 2003
@@ -16,7 +16,7 @@
  =item =~

  determines to which variable the regex is applied.
-In its absence C<$_> is used.
+In its absence, C<$_> is used.

          $var =~ /foo/;

@@ -25,7 +25,7 @@
  searches a string for a pattern match,
  applying the given options.

-        i  case Insensitive
+        i  case-Insensitive
          g  Global - all occurrences
          m  Multiline mode - ^ and $ match internal lines
          s  match as a Single line - . matches \n
@@ -135,12 +135,12 @@
     cntrl   IsCntrl             Control characters
     digit   IsDigit  \d         Digits
     graph   IsGraph             Alphanumeric and punctuation
-   lower   IsLower             Lower case chars (locale aware)
+   lower   IsLower             Lowercase chars (locale aware)
     print   IsPrint             Alphanumeric, punct, and space
     punct   IsPunct             Punctuation
     space   IsSpace  [\s\ck]    Whitespace
             IsSpacePerl   \s    Perl's whitespace definition
-   upper   IsUpper             Upper case chars (locale aware)
+   upper   IsUpper             Uppercase chars (locale aware)
     word    IsWord   \w         Alphanumeric plus _ (Perl)
     xdigit  IsXDigit [\dA-Fa-f] Hexadecimal digit

@@ -218,10 +218,10 @@

  =head1 FUNCTIONS

-   lc          Lower case a string
-   lcfirst     Lower case first char of a string
-   uc          Upper case a string
-   ucfirst     Upper case first char of a string
+   lc          Lowercase a string
+   lcfirst     Lowercase first char of a string
+   uc          Uppercase a string
+   ucfirst     Uppercase first char of a string
     pos         Return or set current match position
     quotemeta   Quote meta characters
     reset       Reset ?pattern? status


--
Sean M. Burke    http://search.cpan.org/~sburke/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.