in reply to a regex to split this...
Update(undef, $userid) = split(qr{(?:/|\\)}, $ENV{'REMOTE_USER'});
# Alternation with non-capturing clustering (?:foo) (undef, $userid) = split(qr{(?:/|\\)}, $ENV{'REMOTE_USER'}); # Alternation without clustering (undef, $userid) = split(qr{\\|/}, $ENV{'REMOTE_USER'}); # Character class including '\' and '/' (undef, $userid) = split(qr{[\\/]}, $ENV{'REMOTE_USER'});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: a regex to split this...
by Leviathan (Scribe) on Aug 09, 2006 at 12:11 UTC | |
by imp (Priest) on Aug 09, 2006 at 12:42 UTC |