improved frameseparator regexp