in reply to probelm with parsing regex

Add the missing chars like - to your expression.
($x) = $w =~ /^host,\s*([\w-]+)\s*/;
Boris