I didn't check it, but it could be something simple as:
ereg("[[:space:]]+"."[[:space:]]+["']?(.+)["']?$",$line,$reg);
suposing that the part:
"." "
is always like you put it, this will match:
an space + a double quote+ a dot + a double quote + an space + an optional quote single or double + any character any number of times but at least one needed + an optional single or double quote + an end of line.
It will save the name (the part inside brackets) on $reg[1].