The closest thing I found to what you're describing is tokenat() expression so for example for fire_1, tokenat("fire_1",0,"_") returns fire and tokenat("fire_1",1,"_") returns 1. The middle value is its position in the string and the final value is using the underscore as a separator.