This is awful. Would schools not be better off concentrating on more important stuff than hair. The pupils are not in the army FGS. Such a waste of time and effort put in to "enforcing the rules". And yes, totally discriminatory. Schools are so hung up on rules.
My daughter goes to a IMO more enlightened school. No uniform, no rules on appearance - and guess what, they save so much time punishing the pupils, and no, there is no anarchy, just freedom to express themselves and for them all to respect each other, embrace individuality. Appearance becomes an expression of personality and identity. No-one comments on appearance, the only rule is to be respectful to others, which covers everything really. Schools need to come out of the dark ages. But I guess I will get roasted for this opinion on here!