Hiya I have some paths like so.
/home/brent/cgi-bin/scripts/common/ticktaktoe /home/brent/cgi-bin/scripts/agent/ticktaktoe This is my regex. ($q) = $ht_file =~ /^(.*)\/[^\/]+/; Im trying to get $q to be populated with common or agent. If anyone can help, it would be appreciated. Regards Brent Clark -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/