make ifs regex a little less restrictive