def is_full_string_match(self, pattern, string):
    pattern = '^%s$' % pattern
    return re.search(pattern, string) is not None
Returns True if the pattern matches the whole string.
dataset/ETHPy150Open GoogleCloudPlatform/DataflowPythonSDK/google/cloud/dataflow/utils/pipeline_options_validator.py/PipelineOptionsValidator.is_full_string_match