[PATCH v2 01/41] lib: Add a way to find the postiion of a trailing number