def getMargin(tag, pattern_margin):
    """ Returns the left margin number of a tag
    
    Args:
        tag: tag with style attribute
        
    Returns
        int: margin number
    """
    return int(pattern_margin.findall(tag["style"])[0])