better parsing of nexp in little ruby nonesense