some regexers (nashorn) return empty strings