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