get_numbers_from_filename

formatreader.get_numbers_from_filename(filename)

Read numbers in a filename. If there are various numbers, only returns the first occurrence. E.g. in ‘this1is25a_test001’ the function only returns ‘1’.

Parameters:

filename (string) – Name of the file

Returns:

s – Returns the number found.

Return type:

string