<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def expand_factor_conditions(s, env):
 """If env matches the expanded factor then return value else return ''. Example ------- "docformatter" "" """

    try:
        factor, value = re.split(r'\s*\:\s*', s)
    except ValueError:
        return s

    if matches_factor_conditions(factor, env):
        return value
    else:
        return ''