Next Regular Expression Mastery 45

The Rest of the Metacharacters

dot

        $time = <STDIN>;               # "11:29\n"
        ($minutes) = ($time =~ /:(.*)$/s);
       <p align=center><table align=center border=1><font size="+2">
       <tr><td>\d</td><td>[0-9]</td></tr>
       <tr><td>\D</td><td>[^0-9]</td></tr>
       <tr><td>\w</td><td>[A-Za-z0-9_]</td></tr>
       <tr><td>\W</td><td>[^A-Za-z0-9_]</td></tr>
       <tr><td>\s</td><td>[&nbsp;\t\n\f\r]</td></tr>
       <tr><td>\S</td><td>[^&nbsp;\t\n\f\r]</td></tr>
       </font></table></p>


Next Copyright © 2002 M. J. Dominus