Compile Method In Regex Python String Format Decimal Places