neilwatson has asked for the wisdom of the Perl Monks concerning the following question:
$x = 'o\&a.sysadm'; if ($x =~ m/^(\w+[\\\&]?-?\w*)\.([\w+\\?[\\\&]?-?\w*\.?]+)/i){ $client = $1; $project = $2; }
Why does $client = nothing and $project = o\&a.sysadm?
Neil Watson
watson-wilson.ca
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regex confusion
by suaveant (Parson) on Aug 07, 2002 at 16:36 UTC | |
Re: Regex confusion
by arturo (Vicar) on Aug 07, 2002 at 16:44 UTC | |
by neilwatson (Priest) on Aug 07, 2002 at 16:54 UTC | |
by flounder99 (Friar) on Aug 07, 2002 at 17:22 UTC | |
by neilwatson (Priest) on Aug 07, 2002 at 18:08 UTC | |
by graff (Chancellor) on Aug 07, 2002 at 17:39 UTC | |
Re: Regex confusion
by thelenm (Vicar) on Aug 07, 2002 at 16:40 UTC | |
Re: Regex confusion
by I0 (Priest) on Aug 08, 2002 at 00:33 UTC |