Fixed rank regex