Fix behaviour regex handling.