Help for this page

Select Code to Download


  1. or download this
    (undef, $userid) = split(qr{(?:/|\\)}, $ENV{'REMOTE_USER'});
    
  2. or download this
    # Alternation with non-capturing clustering (?:foo)
    (undef, $userid) = split(qr{(?:/|\\)}, $ENV{'REMOTE_USER'});
    ...
    
    # Character class including '\' and '/'
    (undef, $userid) = split(qr{[\\/]}, $ENV{'REMOTE_USER'});