import re


def is_shared_object(s):
    """
    Return True if s looks like a shared object file.
    Example: librt.so.1
    """
    so = re.compile('^[\\w_\\-]+\\.so\\.[0-9]+\\.*.[0-9]*$', re.IGNORECASE).match
    return so(s)