fixed regexp rules