MatchesXsGMonthDay🔗
Check that
text conforms to the pattern of an xs:gMonthDay.
Code
g_month_day_rep = (
r"--(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])"
r"(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?"
)
pattern = f"^{g_month_day_rep}$"
return match(pattern, text) is not None