[Br:1]Br.[CH3:3][N:4]1[C:8]([CH3:9])=[CH:7][CH:6]=[C:5]1[C:10]#[N:11].O>C(O)(=O)C>[Br:1][C:7]1[CH:6]=[C:5]([C:10]#[N:11])[N:4]([CH3:3])[C:8]=1[CH3:9]A solution of bromine (6.58 mL, 0.13 mol) in acetic acid (60 mL) is added dropwise, with the aid of a dropping funnel, to a solution of 1,5-dimethyl-1H-pyrrole-2-carbonitrile (15.0 g, 0.12 mol) in acetic acid (300 mL). The batch is stirred at ambient temperature for 24 hours. The reaction mixture is then poured into a beaker containing 300 mL of water. The solid formed is filtered off and rinsed with water. It is then dissolved in dichloromethane (300 mL) and the organic phase is washed with brine, dried over Na2SO4, filtered and concentrated in vacuo to yield the expected product in the form of a solid.