get kernel version from whole text segment