(pattern, value)
return match.group(1)
Extract value using a regex pattern.
Extract value using a regex pattern.
Extract value using a regex pattern .
def extract_value(pattern, value):
    # type: (Pattern, str) -> Optional[str]
    """
    Extract value using a regex pattern.
    """
    match = pattern.match(value)
    if match is None:
        return None
    return match.group(1)
def extract_value ( pattern , value ) : # type: (Pattern, str) -> Optional[str] match = pattern . match ( value ) if match is None : return None return match . group ( 1 )