string_cy_validation#

static EdgarHelpers.string_cy_validation(period)[source]#

Helper method to validate if a string is in ‘CY####’ or ‘CY####Q#’ format.

Parameters:

period (str) – The reporting period string to validate.

Returns:

True if the string is in ‘CY####’ or ‘CY####Q#’ format, False otherwise.

Return type:

bool