Archive for March 12th, 2008

Ruby / Regular Expression

Posted on March 12, 2008. Filed under: Uncategorized |

\w Matches word character, as in [0-9A-Za-z_]
\W Matches nonword character
\s Matches whitespace character, as in [\t\n\r\f]
\S Matches nonwhitespace character
\d Matches digit, same as [0-9]
\D Matches nondigit
\A Matches beginning of a string
\Z Matches end of a string, or before newline at the end
\z Matches end of a string
\b Matches word boundary outside [], or backspace (0×08) [...]

Read Full Post | Make a Comment ( None so far )

  •  

    March 2008
    M T W T F S S
    « Feb   Apr »
     12
    3456789
    10111213141516
    17181920212223
    24252627282930
    31  
  • My Fav

Liked it here?
Why not try sites on the blogroll...