excellent, thanks a lot! you should enclose $prefix in Q E to handle any embedded regexp metacharacters, though.