@Grimy Awesome! The thing that impresses me the most is that the inequality is precisely equivalent; it's not even off by one, even though there is some wiggle room in which it still makes an overall robust regex. Were you aware that this "power of 2 minus 1" trick was previously used in
Is it a Mersenne Prime??