Extended restricted range matching for arbitrary prefix sizes.