[PATCH v5 05/34] lib: Add a way to find the postiion of a trailing number