Shortcut Expansion Description : Greedy « Regular Expression « Perl






Shortcut Expansion Description

    
\d [0-9]           Digits 0 to 9.
\w [0-9A-Za-z_]    A 'word' character allowable in a Perl variable name.
\s [ \t\n\r]       A whitespace character that is, a space, a tab, a newline or a return.
\D [^0-9]          Any non-digit.
\W [^0-9A-Za-z_]   A non-'word' character.
\S [^ \t\n\r]      A non-blank character.

   
    
    
    
  








Related examples in the same category

1.Greedy Matches
2.Greedy and non-greedy quantifiers
3.Greedy searches
4.The Greedy Metacharacters
5.The greedy quantifier
6.Turning Off Greediness
7.A greedy quantifier
8.Shortcuts for Regular Expressions
9.Shortest possible match