Is there a way to get a substring of the SNMP index returned by a discovery Rule?

I'm getting some temp sensor data from the ENTITY-SENSORS-MIB for my devices, and the 3rd digit of the SNMP Index tells me what line card the sensor is on.

I wanted to then create an item...