regex property_value conditionally on property