Help for this page

Select Code to Download


  1. or download this
    [\w[^_]]
    
  2. or download this
    [     # start char class
      \w    # any word char
    ...
      _     # or an underscore (redundant...)
    ]     # end char class
    ]     # followed by a literal ']'
    
  3. or download this
    [^\W_]
    
  4. or download this
    % perl -le '/[^\W_]/ && print for qw(a b _ c d)'
    a
    b
    c
    d