this regex can be quite a problem...
I don't have a chef server to check, but OHAI don't give you a device type or somethings like this?