...
To be able to list all projects and datasets in a chronological order, all names MUST start with four digit version of the current year eg.
2022
All names MUST be lower case insensitive. Do not assume case sensitivity across operating systems eg.
Project, PROJECT, project
are three different names on Linux, but it is
the same name on Windows.
All names MUST only contain upper/ lower case letters, digits, underscore and hyphen characters to achieve interoperability across the operating systems.
...
We can derive the following regular expression from the common needs:
([0-9]{4})([a-zA-Zz_-]+)
Python example: import re
common = r"([0-9]{4})([a-zA-Zz_-]+)"
sample_name = "2022-abc_cde"
matches = re.findall(common, sample_name)
print(matches)
...