$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
In reply to Regex confusion by neilwatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |