scale for pre py regex