generalized regexp

so it works on more than just 64bit centos