:param stops at '/' or '.'