regex fix for sphinx